inc

@JvmName(name = "incExt")
infix fun <T : Number?> KProperty<T>.inc(number: Number): Bson

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

Return

the update @mongodb.driver.manual reference/operator/update/inc/ $inc

Parameters

number

the value


fun <T : Number?> inc(property: KProperty<T>, number: Number): Bson

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

Return

the update @mongodb.driver.manual reference/operator/update/inc/ $inc

Parameters

property

the property

number

the value