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

# addReview() function

Endpoint for adding new product reviews. By default, it uses the addReviewDefaultQuery GraphQL query

Signature:

export declare function addReview(context: Context, params: AddReviewParams, customQuery?: CustomQuery): Promise<AddReviewResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params AddReviewParams Review and product details
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<AddReviewResponse>

Paginated product reviews