Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.test2.updateOne(
- { "items.type": "other" },
- {
- $set: { 'items.$.type': "other type"},
- $inc: {'items.$.quantity': 1},
- $max: {
- 'items.$.weight': 200
- }}
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement