Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:0,array:["foo","bar","baz"],},{_id:1,array:["foo","bar"],},{_id:2,array:["foo"],}]
Query
db.collection.find({array:{$ne:["foo"]}})
Result