UpdateOptions
class UpdateOptions<Document>(context: BsonContext) : Options, WithWriteConcern, WithArrayFilters(source)
The options for a UpdateOne, UpsertOne, UpdateMany operation.
Properties
Functions
Link copied to clipboard
Adds a new node as a child of this one.
Link copied to clipboard
Adds any number of nodes into this one.
Link copied to clipboard
open fun <Item> arrayFilter(id: String, filter: ArrayFiltersOptionDsl<Item>.(it: Field<ArrayFiltersOptionDsl.IteratorType<Item>, Item>) -> Unit)
Declares an array filter, which can then be passed to UpdateQuery.filter.
Link copied to clipboard
Makes this expression immutable.
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new BsonDocument.
Link copied to clipboard
Specifies the WriteConcern for this operation.
Link copied to clipboard
Writes the result of simplifying this expression into writer.