Closed
Description
The $first
and $last
operators are, starting with MongoDB 4.4, also applicable for array elements and should be supported via the ArrayOperatorFactory
.
See: https://docs.mongodb.com/v5.0/reference/operator/aggregation/first-array-element/