Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getReview

Endpoint for fetching paginated reviews for the provided product. By default, it uses the getReviewDefaultQuery GraphQL query

Signature

export declare function getReview(
	context: SetupContext,
	params: GetReviewParams,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<GetReviewResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredGetReviewParamsProduct information and pagination options
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Reviews data

Referenced Types

On this page