You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
getProduct
Endpoint for fetching filtered, and paginated products. By default, it uses the getProductDefaultQuery GraphQL query
Signature
export declare function getProduct(
context: SetupContext,
params: GetProductParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<GetProductResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | GetProductParams | Filtering and pagination options |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
Product data