Operators
Estimated time to read: 1 minute
MQL has a variety of query operators that can be used to manipulate documents or the query the database.
Update Operators¶
Example: $inc
, $set
, $unset
Enable the modification of data in the database
Query Operators¶
Query operators are additional ways to locate data within the database.
The $
operators has multiple uses within MongoDB:
- It precedes MQL operators
- It precedes Aggregation pipeline stages
- Allows access to field values