unset
Deletes existing fields.
This method is equivalent to the $unset
stage.
Example
class User(
val name: String,
val age: Int,
val oldValue: String,
)
users.updateManyWithPipeline {
unset {
exclude(User::age)
}
}
Content copied to clipboard