SaveReviewMutation is a class representing a mutation to save a review. It includes a method to save a review.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • saveReview is a method that sends a mutation request to save a review.

    Parameters

    • variables: SaveReviewVariables

      An object of type SaveReviewVariables representing the variables for the mutation.

    Returns Promise<ReviewResponse>

    A Promise that resolves to the response from the mutation request.

    Throws

    Will throw an error if the mutation request fails or if the provided variables do not pass the validation checks.