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