-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.5.3
-
Component/s: Aggregation Framework
-
ALL
-
In the case where the user wishes to iterate over all the documents and descend down all the subdocuments, $redact fails.
Consider the following syntax:
$redact: { $cond: [true, $$DESCEND, $$DESCEND] }
this will get serialized to:
$redact: $$DESCEND.
However, this fails with the error:
"exception: $redact specification must be an object".