Filter with range operators.
Section: Filter patterns
Comparison operators
javascript
javascript
db.orders.find({ total: { $gte: 100, $lte: 500 } })Explanation
Range filters are common for prices, scores, and timestamps.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Filter patterns