Skip to main content
Range operators filter documents based on numeric or date field boundaries. You can use them to find values within a range, above a threshold, or below a limit. 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