Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"foo":true,"bar":true,},{"foo":true,"bar":false,},{"foo":false,"bar":false,},]
Query
db.collection.aggregate([{"$project":{"fooBar":{$and:["$foo","$bar"]}}}])
Result