-
Type: Investigation
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Tools and Replicator
-
0
This ticket represents the work done to add new accumulators $concatArrays and $setUnion. The accumulators (like the other accumulators) can be used in $group, $bucketAuto, $bucket, and $setWindowFields. Both accumulators can be used with the classic execution engine and with SBE (we would only use SBE if the operator that uses the accumulators is enabled in SBE). See the linked syntax doc for further details on semantics.
Description of Linked Ticket
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.
- depends on
-
SERVER-16284 Allow for $pushall / $push with $each to allow pushing all elements of array in $group
- Closed