Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "a",
- "items": [
- {
- "x": "10",
- "val": "123"
- },
- {
- "x": "11",
- "val": "123"
- },
- {
- "x": "12",
- "val": "123"
- }
- ]
- }
- db.collection("collectionName").update({"name": "a"}, {"..."})
- db.collection("collectionName").update({"items.x" : 11}, {"$set" : {"items.$.val" : "any_value"}})
Add Comment
Please, Sign In to add comment