[SERVER-27484] allow $setUnion in $group Created: 21/Dec/16 Updated: 06/Dec/22 Resolved: 23/Jan/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | tony kerz | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
i have a situation where i have arrays in collection documents that i want to aggregate into a "union" array on a result, something like:
and i would like to do something like:
and have the result be:
right now i would have to {$unwind: '$numbers'} |
| Comments |
| Comment by David Storch [ 23/Jan/17 ] |
|
Hi tony-kerz, This request looks very similar to SERVER-16284, so I'm resolving as a duplicate. Please review that ticket and watch for updates. Best, |
| Comment by Kelsey Schubert [ 21/Dec/16 ] |
|
Hi tony-kerz, Thank you for the improvement request. I've marked this ticket to be considered by the Query Team. Please continue to watch for updates. Kind regards, |