翻译或纠错本页面
- Reference >
- Operators >
- Query and Projection Operators >
- Comparison Query Operators
Comparison Query Operators¶
注解
For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.
For comparison of different BSON type values, see the specified BSON comparison order.
Name | Description |
---|---|
$eq | Matches values that are equal to a specified value. |
$gt | Matches values that are greater than a specified value. |
$gte | Matches values that are greater than or equal to a specified value. |
$lt | Matches values that are less than a specified value. |
$lte | Matches values that are less than or equal to a specified value. |
$ne | Matches all values that are not equal to a specified value. |
$in | Matches any of the values specified in an array. |
$nin | Matches none of the values specified in an array. |