Last constructor

Last(
  1. dynamic expr
)

Creates $last operator expression

Returns the value that results from applying an expression to the last document in a group of documents that share the same group by a field. Only meaningful when documents are in a defined order.

Implementation

Last(expr) : super('last', expr);