Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"variants":[{price:100},{price:150}]},{"variants":[{price:120},{price:180}]}]
Query
db.collection.find({"variants":{"$elemMatch":{"price":{"$gt":90,"$lt":120}}}})
Result