[SERVER-11443] $redact can't accept $$DESCEND Created: 29/Oct/13 Updated: 11/Jul/16 Resolved: 19/Dec/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 2.5.3 |
| Fix Version/s: | 2.5.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ranjay Krishna | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | aggregation | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Steps To Reproduce: | db.aggregate( [ { $redact: "$$DESCEND" }] ); |
| Participants: |
| Description |
|
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:
this will get serialized to:
However, this fails with the error:
|
| Comments |
| Comment by Githook User [ 19/Dec/13 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: |