Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getFacetProductProjection

Endpoint for loading products based on provided filters, as well as sorting and pagination options. By default, it uses the getFacetProductProjectionDefaultQuery GraphQL query

Signature

export declare function getFacetProductProjection(
	context: SetupContext,
	params: GetFacetProductProjectionParams,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<GetFacetProductProjectionResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredGetFacetProductProjectionParamsFilters, sorting and pagination options
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Paginated products data

Referenced Types

On this page