MongoDB TutorialLesson 10Free preview
MongoDB Query Operators
This lesson is part of MongoDB · All levels
Summary
This lesson brings together MongoDB query operators to compile complex search criteria. Comparison operators like $eq, $gt, $gte, $lt, $lte, $ne, and $in compare field values, whereas $and, $or, and $not combine conditions. All of these operators make filters much more expressive than simple value matches.
Key points
- The comparison operator: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin
- $in matches the score on the candidate list
- $or and $and combine some conditions logically
- $not reverse the condition of the operator in it
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.