UpdateOperations

Interface grouping MongoDB operations allowing to update existing information.

Inheritors

Properties

Link copied to clipboard
abstract val context: ERROR CLASS: Symbol not found for BsonContext

Functions

Link copied to clipboard
abstract 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 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 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 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 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)

Updates all documents that match filter according to update.

Link copied to clipboard
abstract 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)

Updates a single document that matches filter according to update.

Link copied to clipboard
abstract 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)

Updates a single document that matches filter according to update.