CustomRequest is a class representing a custom query or mutation by the user.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • custom is a method that sends a custom query or mutation by the user.

    Parameters

    • query: string

      The query for the request.

    • variables: unknown = {}

      The variables for the request. This parameter is optional.

    Returns Promise<any>

    The response from the query request.