Filter operators
| Operator | Description |
|---|---|
eq(property, value) | Equals |
notEq(property, value) | Not equals |
inValues(property, values[]) | In list |
notIn(property, values[]) | Not in list |
gt(property, number) | Greater than |
gte(property, number) | Greater than or equal |
lt(property, number) | Less than |
lte(property, number) | Less than or equal |
exists(property) | Property exists |
notExists(property) | Property does not exist |
Filter types
The DSL producesFilterGroup and FilterExpression objects. You typically do not construct these manually, but the types are exported if you need to build filters programmatically:
filter() function wraps a single expression in a FilterGroup automatically, so you can pass either an expression or a group:
Filter aliases
Configure once at init. Aliases are applied automatically to all results:Alias types
An alias can be a simple string mapping or an object with value mappings:brand: { property: 'vendor', values: { nike: 'Nike' } } lets you write { brand: 'nike' } and the SDK resolves it to eq('vendor', 'Nike').