Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{type:"A",group:1},{type:"B",group:1},{type:"C",group:1},{type:"A",group:2},{type:"B",group:2},{type:"C",group:2}]
Query
db.collection.find({$nor:[{type:"A",group:1},{type:"B",group:1}]})
Result