UpdateUserMutation is a class representing a mutation to update a user. It includes a method to update a user.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • updateUser is a method that sends a mutation request to update a user.

    Parameters

    • variables: UpdateUserVariables

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

    Returns Promise<UpdateUserResponse>

    A Promise that resolves to an object of type UpdateUserResponse. This object includes the updated user details

    Throws

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