UpsertQuery
DSL for MongoDB operators that are used to update existing values, creating new documents if none exist (does not include aggregation operators).
This interface is a variant of UpdateQuery used in upsert operations. See UpdateQuery for more information.
If you can't find the operator you're searching for, visit the tracking issue.
Functions
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
Increments a field by the specified amount.
If an upsert operation results in an insert of a document, then this operator assigns the specified value to the field. If the update operation does not result in an insert, this operator does nothing.
Sets this field to the current date.
Sets this field to the current timestamp.
Writes the result of simplifying to a new Bson.
Writes the result of simplifying this expression into writer.