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

# getProduct() function

Endpoint for fetching filtered, and paginated products. By default, it uses the getProductDefaultQuery GraphQL query

Signature:

export declare function getProduct(context: Context, params: ProductWhereSearch, customQuery?: CustomQuery): Promise<GetProductResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params ProductWhereSearch Filtering and pagination options
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<GetProductResponse>

Product data