MongoDB Query Language (MQL) Field Update Operators
Field update operators are used to modify specific fields in documents during update operations.
$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.