-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: mongodb-2.6
-
Component/s: manual
-
Labels:None
http://docs.mongodb.org/manual/release-notes/2.6/#aggregation-pipeline-changes
Syntax in example has flaws:
db.test.aggregate(
{ $match: {} },
{ $redact: { $cond: [
,
"$$CONTINUE",
"$$PRUNE" ]
}
}
)
Should be:
db.files.aggregate( [
{ $match: {} },
{ $redact: { $cond: [
,
"$$CONTINUE",
"$$PRUNE" ]
}
}
] )