You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
getFacet
Endpoint for loading products and categories based on provided filters, as well as sorting and pagination options.
Signature
export declare function getFacet(
context: SetupContext,
params: GetFacetParams
): Promise<GetFacetResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | GetFacetParams | Filters, sorting and pagination options |
Returns
Paginated products data