-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query
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)
- duplicates
-
SERVER-44327 Add $first and $last expressions
- Closed
- related to
-
SERVER-15697 Create a string accumulator for aggregation
- Backlog