Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:1,name:"Colors company",shops:[{shopID:1,income:0},{shopID:2,income:0},{shopID:3,income:0}]}]
Query
db.collection.update({},{"$inc":{"shops.$[x].income":200}},{arrayFilters:[{"x.shopID":2}]})
Result