max

@JvmName(name = "maxExt")
infix fun <T> KProperty<T>.max(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 @mongodb.driver.manual reference/operator/update/min/ $min

Parameters

value

the value

the value 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 @mongodb.driver.manual reference/operator/update/min/ $min

Parameters

property

the property

value

the value

the value type