Filter operators
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:
Runtime facet discovery
In v3, available facets and their counts are fetched at runtime usingsdk.facets(). This replaces the facets array that was passed to createClient() in v2.
filterGroup the shopper has selected:
Filter shorthand
If a single expression is all you need, pass it directly tofilter(). It is equivalent to and(...) for one expression.