Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"_id":1,"a":[{"b":1},{"b":2}]},{"_id":2,"a":[{"b":3},{"b":1}]}]
Query
db.collection.find({"a.b":{/**$eq: 1*/$ne:1}})
Result