Details
-
New Feature
-
Status: Open
-
Major - P3
-
Resolution: Unresolved
-
None
-
None
-
Query Optimization
Description
I would like to be able to push all elements of an array field into a new field. So, in a $group, I could do a $push or $addToSet of a field that is an array field and the resulting field would be an array of the elements instead of an array of arrays.
Seems like the $each operator in update is the solution if added to aggregations.
Attachments
Issue Links
- is duplicated by
-
SERVER-23839 Aggregation accumulators does not allow the new "direct" array notation
-
- Closed
-
-
SERVER-14340 Option for $addToSet to work on array members
-
- Closed
-
-
SERVER-27484 allow $setUnion in $group
-
- Closed
-
- related to
-
SERVER-29339 allow using $reduce expression as accumulator in $group
-
- Backlog
-