Learn › MongoDB fundamentals
Query operators
Comparison, set membership, and boolean logic inside a filter.
By the end: Express any single-collection condition without writing a loop.
Lessons
- Comparison operators
MongoDB comparison operators: $gt, $gte, $lt, $lte, $ne and how to combine two of them on a single field.
- $in and $nin
MongoDB $in and $nin: match a field against a list of acceptable values, and the trap $nin sets with missing fields.
- Logical operators and implicit AND
MongoDB $and, $or and $not, plus the implicit AND that makes an explicit $and unnecessary most of the time.