You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
addReview
Endpoint for adding new product reviews. By default, it uses the addReviewDefaultQuery GraphQL query
Signature
export declare function addReview(
context: SetupContext,
params: AddReviewParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<any>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | AddReviewParams | Review and product details |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
Paginated product reviews