UpdateOperations

Interface grouping MongoDB operations allowing to update existing information.

Inheritors

Types

Link copied to clipboard
interface UpdateResult

The return value of updateMany and updateOne.

Link copied to clipboard

The return value of upsertOne.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun bulkWrite(options: BulkWriteOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, operations: BulkWrite<Document>.() -> Unit)

Performs multiple update operations in a single request.

Link copied to clipboard
abstract fun findOneAndUpdate(options: UpdateOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, update: UpdateQuery<Document>.() -> Unit): Document?

Updates one element that matches filter according to update and returns it, atomically.

Link copied to clipboard
abstract fun replaceOne(options: ReplaceOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, document: Document)

Replaces a document that matches filter by document.

Link copied to clipboard
abstract fun repsertOne(options: ReplaceOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, document: Document)

Replaces a document that matches filter by document.

Link copied to clipboard

Updates all documents that match filter according to update.

Link copied to clipboard

Updates a single document that matches filter according to update.

Link copied to clipboard

Updates a single document that matches filter according to update.