fun <T> rename(property: KProperty<T?>, newProperty: KProperty<T>): Bson
Creates an update that renames a field.
property - the property
property
newProperty - the new property
newProperty
Return the update
Mongodb .driver.manual reference/operator/update/rename/ $rename