Constructs a new ToggleFavouriteMutation
instance.
The authentication token.
toggleFavourite
is a method that sends a mutation request to toggle a favourite.
An object of type ToggleFavouriteVariables
representing the variables for the mutation.
A Promise that resolves to the response from the mutation request.
Will throw an error if the mutation request fails or if the provided variables do not pass the validation checks.
ToggleFavouriteMutation
is a class that contains the method to toggle a favourite. It includes a method to toggle a favourite.