updateMany
inline suspend fun MongoCollection<*>.updateMany(filter: BsonDocument, update: BsonDocument, upsert: Boolean = false): UpdateManyResult
Update multiple objects or insert a single new object in the remote collection.
Return
the result of the updateMany
operation.
Parameters
filter
a filter to select the documents to update.
update
a BsonDocument specifying the updates that should be applied to the documents.
upsert
a boolean indicating if a new document should be inserted if the filter does not match any existing documents in the collection.
Throws
if the underlying App Service HTTP requests fails.
SerializationException
if App Service response could not be deserialized to UpdateManyResult