Database

[{"foo":true,"bar":true,},{"foo":true,"bar":false,},{"foo":false,"bar":false,},]

Query

db.collection.aggregate([{"$project":{"fooBar":{$and:["$foo","$bar"]}}}])

Result