Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Field update operators are used to modify specific fields in documents during update operations.
| Description | |
|---|---|
$currentDate |
The $currentDate operator sets the value of a field to the current date, either as a Date or a timestamp. |
$inc |
The $inc operator increments the value of a field by a specified amount. |
$mul |
The $mul operator multiplies the value of a field by a specified number. |
$rename |
The $rename operator allows renaming fields in documents during update operations. |
$setOnInsert |
The $setOnInsert operator sets field values only when an upsert operation results in an insert of a new document. |