infix fun <T> KProperty<T>.last(expression: T): BsonField
(source)
Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.
Parameters
Return
the field
Mongodb
.driver.manual reference/operator/aggregation/last/ $last