Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"things":[{"a":{"b":"test"}},{"a":null},{"a":{"b":"abc"}}]}]
Query
db.collection.find({things:{"$elemMatch":{"a.b":"test"}}},{"things.$":1})
Result