Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb find and update array item by id

db.myCollection.update({"_id" : 1, "lb.id" : 2},{$set : {"lb.$.sc" : 17}})
 
PREVIOUS NEXT
Tagged: #mongodb #find #update #array #item #id
ADD COMMENT
Topic
Name
6+3 =