Grokking MongoDB
Vote

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?

OperatorMatches when the field is
$eqEqual to the value
$neNot equal to the value
$gtGreater than the value
$gteGreater than or equal to the value
$ltLess than the value
$lteLess than or equal to the value
$inEqual to any value in a list
`$nin

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content