Home > @vsf-enterprise/commercetools-api > getFacetProductProjection

# getFacetProductProjection() function

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: Context, params: GetFacetProductProjectionParams, customQuery?: CustomQuery): Promise<GetFacetProductProjectionResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params GetFacetProductProjectionParams Filters, sorting and pagination options
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<GetFacetProductProjectionResponse>

Paginated products data