Grokking MongoDB
0% completed
Comparison Operators
Eight operators cover every comparison a query filter can make between a field and a value. They answer three kinds of question: is the field equal to this value, is it above or below this value, and is it in this list?
| Operator | Matches when the field is |
|---|---|
$eq | Equal to the value |
$ne | Not equal to the value |
$gt | Greater than the value |
$gte | Greater than or equal to the value |
$lt | Less than the value |
$lte | Less than or equal to the value |
$in | Equal to any value in a list |
| `$nin |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%