← MongoDB learning pathMongoDB · Module 3 of 10
Query operators
Filter documents with comparison and logical operators.
📖 Key ideas
- Comparison: $gt, $gte, $lt, $lte, $ne, $in.
- Logical: $and, $or, $not.
- Nested fields: { "address.city": "Chennai" }.
- Arrays: { tags: "mongo" } matches arrays containing it.
- sort, limit and skip shape results.
💡 Real-life example: Query operators are filters on a shopping site: price above, brand in, rating at least.
$gtGreater than
$inMatches any value in a list
$orEither condition
Dot notationAccesses nested fields