Skip to content

MongoDB driver for Kotlin (synchronous)opensavvy.ktmongo.sync.operationsUpdatePipelineOperations

UpdatePipelineOperations

Interface grouping MongoDB operations allowing to update existing information using aggregation pipelines.

Inheritors

Properties

context

abstract val context: 

Functions

updateManyWithPipeline

abstract fun updateManyWithPipeline(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit = {}, update: <Document>.() -> Unit)

Updates all documents that match filter according to the update pipeline.

updateOneWithPipeline

abstract fun updateOneWithPipeline(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit = {}, update: <Document>.() -> Unit)

Updates a single document that matches filter according to the update pipeline.

upsertOneWithPipeline

abstract fun upsertOneWithPipeline(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit = {}, update: <Document>.() -> Unit)

Updates a single document that matches filter according to the update pipeline.