ToggleFavouriteMutation is a class that contains the method to toggle a favourite. It includes a method to toggle a favourite.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • toggleFavourite is a method that sends a mutation request to toggle a favourite.

    Parameters

    • variables: ToggleFavouriteVariables

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

    Returns Promise<Favourites>

    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.