The following table lists the full set of comparison operators.
Operator | Types | Meaning |
---|---|---|
$ne | string, date, int, long | Not equal to |
$eq | string, date, int, long | Equals |
$gt | string, date, int, long | Greater than |
$gte | string, date, int, long | Greater than or equal to |
$lt | string, date, int, long | Less than |
$lte | string, date, int, long | Less than or equal to |
$match | string | Matches |
$nmatch | string | Does not match |
For time-based operations, please also refer to Relative Time Operators.