setValue

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

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

Return

the update

Parameters

property

the property

value

the value

the value type