kmongo / org.litote.kmongo / kotlin.reflect.KProperty / first

first

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

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

Parameters

expression - the expression

Parameters

Return
the field

Mongodb
.driver.manual reference/operator/aggregation/first/ $first