UpdateMany
class UpdateMany<Document : Any> : Command, AbstractBsonNode, AvailableInBulkWrite<Document> (source)
Updating multiple elements in a collection.
Example
users.updateMany({ User::name eq "foo" }) {
User::age set 18
}Content copied to clipboard
External resources
See also
Filter operators
Update operators
Properties
Functions
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new Bson.
Link copied to clipboard
Writes the result of simplifying this expression into writer.