ToggleLikeMutation is a class representing a mutation to toggle a like. It includes a method to delete an activity

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • ToggleLike is a method that sends a mutation request to toggle a like.

    Parameters

    • variables: ToggleLikeVariables

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

    Returns Promise<any>

    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.