rename

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

Creates an update that renames a field.

Return

the update

Parameters

property

the property

newProperty

the new property