max

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

Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group.

Return

the field

Parameters

expression

the expression

the expression type

fun <T> max(property: KProperty<T>, value: T): Bson

Creates an update that sets the value of the property if the given value is greater than the current value of the property.

Return

the update

Parameters

property

the property

value

the value

the value type