Skip to main content
Build filters using the DSL:

Filter operators

Filter types

The DSL produces FilterGroup and FilterExpression objects. You typically do not construct these manually, but the types are exported if you need to build filters programmatically:
The 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:
With value mappings, the alias brand: { property: 'vendor', values: { nike: 'Nike' } } lets you write { brand: 'nike' } and the SDK resolves it to eq('vendor', 'Nike').

Next steps