meteor-feature-requests icon indicating copy to clipboard operation
meteor-feature-requests copied to clipboard

add support for new array operators in mongodb 3.6 for minimongo

Open turbobuilt opened this issue 7 years ago • 1 comments

Mongodb 3.6 lets you update a specific property of all objects in an array with the following syntax. Requesting support for it in minimongo

Items.update({ _id: item._id }, {                                                                                                           
    $set: {                                                                                                            
        "child.$[].value": newValue                                                       
    }                                                                                                          
}

turbobuilt avatar Jan 24 '18 20:01 turbobuilt

https://github.com/meteor/meteor-feature-requests/issues/268

crapthings avatar Mar 04 '18 04:03 crapthings