Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
Merges 2 sequences of update operations together.
Merges 2 sequences of update operations together.
Value parameters
- anotherUpdate
-
the update to be merged with
Attributes
- Returns
-
the update
Creates an update that sets the value of the field to the current date as a BSON date.
Creates an update that sets the value of the field to the current date as a BSON date.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
Creates an update that sets the value of the field to the current date as a BSON timestamp.
Creates an update that sets the value of the field to the current date as a BSON timestamp.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
Creates an update that increments the value of the field with the given name by the given value.
Creates an update that increments the value of the field with the given name by the given value.
Value parameters
- fieldName
-
the non-null field name
- number
-
the value
Attributes
- Returns
-
the update
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value
Attributes
- Returns
-
the update
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value
Attributes
- Returns
-
the update
Creates an update that multiplies the value of the field with the given name by the given number.
Creates an update that multiplies the value of the field with the given name by the given number.
Value parameters
- fieldName
-
the non-null field name
- number
-
the non-null number
Attributes
- Returns
-
the update
Creates an update that pops the first element of an array that is the value of the field with the given name.
Creates an update that pops the first element of an array that is the value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
Creates an update that pops the last element of an array that is the value of the field with the given name.
Creates an update that pops the last element of an array that is the value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
Creates an update that removes all instances of the given value from the array value of the field with the given name.
Creates an update that removes all instances of the given value from the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
Creates an update that removes all instances of the given values from the array value of the field with the given name.
Creates an update that removes all instances of the given values from the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
Creates an update that removes from an array all elements that match the given filter.
Creates an update that removes from an array all elements that match the given filter.
Value parameters
- filter
-
the query filter
Attributes
- Returns
-
the update
Creates an update that adds the given value to the array value of the field with the given name.
Creates an update that adds the given value to the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
Creates an update that adds each of the given values to the array value of the field with the given name.
Creates an update that adds each of the given values to the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given options for positioning the pushed values, and then slicing and/or sorting the array.
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given options for positioning the pushed values, and then slicing and/or sorting the array.
Value parameters
- fieldName
-
the non-null field name
- options
-
the non-null push options
- values
-
the values
Attributes
- Returns
-
the update
Creates an update that renames a field.
Creates an update that renames a field.
Value parameters
- fieldName
-
the non-null field name
- newFieldName
-
the non-null new field name
Attributes
- Returns
-
the update
Creates an update that sets the value of the field with the given name to the given value.
Creates an update that sets the value of the field with the given name to the given value.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.
Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.
Value parameters
- value
-
the value
Attributes
- Returns
-
the update .0
- See also
-
UpdateOptions#upsert(boolean)
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update ee UpdateOptions#upsert(boolean)