Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"id":"u101","notifications":{}},{"id":"u102","notifications":{"channelId":1}}]
Query
db.collection.update({},{$inc:{"notifications.channelId":1}},{multi:true})
Result