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
abstract val context: ERROR CLASS: Symbol not found for BsonContext

Functions

Link copied to clipboard
abstract suspend fun bulkWrite(options: ERROR CLASS: Symbol not found for BulkWriteOptions<Document>.() -> Unit = {}, filter: ERROR CLASS: Symbol not found for FilterQuery<Document>.() -> Unit = {}, operations: ERROR CLASS: Symbol not found for BulkWrite<Document>.() -> Unit)

Performs multiple update operations in a single request.

Link copied to clipboard
abstract suspend fun findOneAndUpdate(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 UpdateQuery<Document>.() -> Unit): Document?

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

Link copied to clipboard
abstract suspend fun replaceOne(options: ERROR CLASS: Symbol not found for ReplaceOptions<Document>.() -> Unit = {}, filter: ERROR CLASS: Symbol not found for FilterQuery<Document>.() -> Unit = {}, document: Document)

Replaces a document that matches filter by document.

Link copied to clipboard
abstract suspend fun repsertOne(options: ERROR CLASS: Symbol not found for ReplaceOptions<Document>.() -> Unit = {}, filter: ERROR CLASS: Symbol not found for FilterQuery<Document>.() -> Unit = {}, document: Document)

Replaces a document that matches filter by document.

Link copied to clipboard
abstract suspend fun updateMany(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 UpdateQuery<Document>.() -> Unit): UpdateOperations.UpdateResult

Updates all documents that match filter according to update.

Link copied to clipboard
abstract suspend fun updateOne(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 UpdateQuery<Document>.() -> Unit): UpdateOperations.UpdateResult

Updates a single document that matches filter according to update.

Link copied to clipboard
abstract suspend fun upsertOne(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 UpsertQuery<Document>.() -> Unit): UpdateOperations.UpsertResult

Updates a single document that matches filter according to update.