mongodb - Mongo Db aggregation $redact error on shell -
i make aggregate in mongo db. have error
$redact's expression should not return aside variables &&keep, $$descend , $$prune, returned {if:true}
sounds $redact not have $cond statment within it's arguments:
db.collection.aggregate([ { "$redact": { "$cond": { "if": <logical condition> "then": < $$keep or $$prune or $$descend >, "else": < $$keep or $$prune (etc) depending on false > } }} ]) it's covered in manual page linked.
Comments
Post a Comment