first

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

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

Return

the field

Parameters

expression

the expression

the expression type