[SERVER-41346] all accumulators should be available as expressions Created: 28/May/19 Updated: 06/Dec/22 Resolved: 14/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | expression, pm1457-nominee | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Not clear why $first $last and $addToSet are the only accumulators not available as regular expressions with array argument. In particular $last is helpful to avoid very verbose syntax for $arrayElemAt plus calculate position of last element ($subtract 1 from $size) |
| Comments |
| Comment by Asya Kamsky [ 14/Apr/20 ] |
|
$fiirst and $last were done under |
| Comment by Craig Homa [ 17/Jun/19 ] |
|
ted.tuckman@mongodb.com to consider this as part of the work that george.wangensteen will be doing. |