Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"key":1,"price":[1666,30,939]},{"key":2,"price":[666,300,99]}]
Query
db.collection.aggregate([{$project:{filteredArray:{$filter:{input:"$price",as:"item",cond:{$gte:["$$item",100]}}}}}])
Result