$or
, $gte
, $eq
).
$or
logical operator filter.
$or
if you are comparing on the same field.
The opposite of this operator $nin
can be used to match keys where the value is not in a range of values.
$gt
,
$gte
, $lt
, $lte
$.a.$.b.$.c.$.e
will throw an errorO(n^3)
Operator | Supported Type | Description |
---|---|---|
none | all | Match all |
$. | array | Match an array value |
$gte | number | Greater than or equal to |
$gt | number | Greater than |
$lt | number | Less than |
$lte | number | Less than or equal to |
$eq | number, object, string, bool | Equal |
$neq | number, object, string, bool | Not Equal |
$in | array | checks if an array contains a value |
$nin | array | checks if an array does not contain a value |
$or | array of conditions | matches an array of conditions |
$and | array of conditions | matches an array of conditions |
$exist | array | checks if a key exists |
$regex | string | checks if the regex matches |