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.
Functions
Link copied to clipboard
abstract fun findOneAndUpdate(options: UpdateOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, update: UpdateQuery<Document>.() -> Unit): Document?
Link copied to clipboard
abstract fun replaceOne(options: ReplaceOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, document: Document)
Link copied to clipboard
abstract fun repsertOne(options: ReplaceOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, document: Document)
Link copied to clipboard
abstract fun updateMany(options: UpdateOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, update: UpdateQuery<Document>.() -> Unit): UpdateOperations.UpdateResult
Link copied to clipboard
abstract fun updateOne(options: UpdateOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, update: UpdateQuery<Document>.() -> Unit): UpdateOperations.UpdateResult
Link copied to clipboard
abstract fun upsertOne(options: UpdateOptions<Document>.() -> Unit = {}, filter: FilterQuery<Document>.() -> Unit = {}, update: UpsertQuery<Document>.() -> Unit): UpdateOperations.UpsertResult