-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.6.3
-
Component/s: Aggregation Framework
-
None
It would be very usefull if $addToSet in $group had an option to add members of an array to the set similar to the $each modifier to the $addToSet update modifier.
Something like $group: {..., mySet: {$addToSet: {$each: "$myArrar"}}}
- duplicates
-
SERVER-16284 Allow for $pushall / $push with $each to allow pushing all elements of array in $group
- In Code Review