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

# getReview() function

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

Signature:

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

# Parameters

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

Returns:

Promise<GetReviewResponse>

Reviews data