set

@JvmName(name = "setExt")
infix fun <T> KProperty<T>.set(value: T?): Bson

Creates an update that sets the value of the property to the given value.

Return

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

Parameters

value

the value

the value type

fun <T> set(property: KProperty<T?>, value: T?): Bson

Creates an update that sets the value of the property to the given value.

Return

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

Parameters

property

the data class property

value

the value

the value type