set
Overrides the value of existing fields or inserts new ones.
This method is equivalent to the $set
stage.
Example
class User(
val name: String,
val age: Int,
)
users.updateManyWithPipeline {
set {
User::age set 12
}
}
Content copied to clipboard