MongoDB request DSL • opensavvy.ktmongo.dsl.query • UpdateQuery • max
max¶
Updates the value of a field to the specified value
only if the specified value
is greater than the current value of the field.
If the field doesn't exist, the field is set to the specified value
.
Example¶
External resources¶
open infix fun <V : Comparable<V>> KProperty1<T, V?>.max(value: V)