Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
2.1.1
-
None
-
Fully Compatible
Description
Allow:
db.coll.aggregate({$group:{_id:"$field", docs:{$push:"$$ROOT"}}});
Currently {$push:"$field"} is supported, which accumulates a field from the document. Adding support for "$$ROOT" to expand to the full document would seem to make sense then.
Attachments
Issue Links
- related to
-
SERVER-9840 Add variables, $$ROOT and $$CURRENT to aggregation and make $let to set them
-
- Closed
-