kmongo / org.litote.kmongo / rename

rename

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

Creates an update that renames a field.

Parameters

property - the property

newProperty - the new property

Return
the update

Mongodb
.driver.manual reference/operator/update/rename/ $rename