min

@JvmName(name = "minExt")
infix fun <T> KProperty<T>.min(value: T): Bson

Creates an update that sets the value of the property if the given value is less 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> min(property: KProperty<T>, value: T): Bson

Creates an update that sets the value of the property if the given value is less 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