rename

@JvmName(name = "renameExt")
infix fun <T> KProperty<T?>.rename(newProperty: KProperty<T?>): Bson

Creates an update that renames a field.

Return

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

Parameters

newProperty

the new property


fun <T> rename(property: KProperty<T?>, newProperty: KProperty<T?>): Bson

Creates an update that renames a field.

Return

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

Parameters

property

the property

newProperty

the new property