ToggleFollowMutation is a class representing a mutation to toggle a follow. It includes a method to toggle a follow.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • ToggleFollow is a method that sends a mutation request to toggle a follow.

    Parameters

    • variables: ToggleFollowVariables

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

    Returns Promise<UserResponse>

    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.