Database

[{foo:true}]

Query

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

Result