- Reference >
- Operators >
- Update Operators >
- Field Update Operators
Field Update Operators¶
Name | Description |
---|---|
$inc |
Increments the value of the field by the specified amount. |
$rename |
Renames a field. |
$setOnInsert |
Sets the value of a field upon document creation during an upsert. Has no effect on update operations that modify existing documents. |
$set |
Sets the value of a field in an existing document. |
$unset |
Removes the specified field from an existing document. |