updateManyWithPipeline
abstract suspend fun updateManyWithPipeline(options: ERROR CLASS: Symbol not found for UpdateOptions<Document>.() -> Unit = {}, filter: ERROR CLASS: Symbol not found for FilterQuery<Document>.() -> Unit = {}, update: ERROR CLASS: Symbol not found for UpdateWithPipelineQuery<Document>.() -> Unit)(source)
Updates all documents that match filter according to the update pipeline.
Example
class User(
val name: String,
val age: Int,
)
collection.updateManyWithPipeline(
filter = {
User::name eq "Patrick"
}
) {
set {
User::age set 15
}
}Content copied to clipboard
External resources
Parameters
filter
Optional filter to select which documents are updated. If no filter is specified, all documents are updated.
See also
Update a single document.