Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:"aasdfeasfeasdf",todo:[{_todoIde:333,_with:["abc"]},{_todoIde:111,_with:[]}]}]
Query
db.collection.update({_id:"aasdfeasfeasdf","todo._todoIde":333},{$addToSet:{"todo.$._with":"abc"}})
Result