Alokai
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

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredAddReviewParamsReview and product details
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Paginated product reviews

Referenced Types

On this page