Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"id":1,"product":[{"name":"Book","price":100},{"name":"Pen","price":10}]}]
Query
db.collection.update({"product.0.price":100},{$set:{"product.$[x].paid":100}},{arrayFilters:[{"x.price":100}]})
Result