Home > @vsf-enterprise/commercetools-api > getFacetCategories
# getFacetCategories() function
Endpoint for loading categories based on filter parameters. By default, it uses the getFacetCategoriesDefaultQuery GraphQL query
Signature:
export declare function getFacetCategories(context: Context, params: CategoryWhereSearch, customQuery?: CustomQuery): Promise<GetFacetCategoriesResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
params | CategoryWhereSearch | Filtering and pagination options |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<GetFacetCategoriesResponse>
Paginated categories data