kmongo / org.litote.kmongo / inc

inc

@JvmName("ulonginc") fun inc(property: KProperty<<ERROR CLASS>>, number: Number): Bson (source)
fun <T : Number?> inc(property: KProperty<T>, number: Number): Bson (source)

Creates an update that increments the value of the property by the given value.

Parameters

property - the property

number - the value

Return
the update

Mongodb
.driver.manual reference/operator/update/inc/ $inc