last

infix fun <T> KProperty<T>.last(expression: T): BsonField

Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.

Return

the field

Parameters

expression

the expression

the expression type