You can combine multiple range operators on the same field to create bounded ranges.
For example,
{ $gte: 100, $lte: 200 } matches values from 100 to 200 inclusive.
For open-ended ranges, use a single operator.
For example, { $gt: 500 } matches all values greater than 500 with no upper limit.
Compatibility
Examples
- TypeScript
- Python
- Redis CLI