[size=1.04em]$inc
Increments the value of the field by the specified amount.
[size=1.04em]$rename
Renames a field.
[size=1.04em]$setOnInsert
Sets the value of a field upon documentation creation during an upsert. Has no effect on update operations that modify existing documents.
[size=1.04em]$set
Sets the value of a field in an existing document.
[size=1.04em]$unset
Removes the specified field from an existing document.
Array
Operators
Name
Description
[size=1.04em]$
Acts as a placeholder to update the first element that matches the query condition in an update.
[size=1.04em]$addToSet
Adds elements to an existing array only if they do not already exist in the set.
[size=1.04em]$pop
Removes the first or last item of an array.
[size=1.04em]$pullAll
Removes multiple values from an array.
[size=1.04em]$pull
Removes items from an array that match a query statement.
[size=1.04em]$pushAll
Deprecated. Adds several items to an array.
[size=1.04em]$push
Adds an item to an array.
Modifiers
Name
Description
[size=1.04em]$each
Modifies the [size=1.04em]$push and [size=1.04em]$addToSet operators to append multiple items for array updates.
[size=1.04em]$slice
Modifies the [size=1.04em]$push operator to limit the size of updated arrays.
[size=1.04em]$sort
Modifies the [size=1.04em]$push operator to reorder documents stored in an array.
Bitwise
Name
Description
[size=1.04em]$bit
Performs bitwise [size=1.04em]AND and [size=1.04em]OR updates of integer values.
Isolation
Name
Description
[size=1.04em]$isolated
Modifies behavior of multi-updates to improve the isolation of the operation.