Type alias DocumentInput<Result, Variables>

DocumentInput<Result, Variables>: string | DocumentNode | TypedDocumentNode<Result, Variables>

Any GraphQL DocumentNode or query string input.

Remarks

Wherever any urql bindings or API expect a query, it accepts either a query string, a DocumentNode, or a TypedDocumentNode.

Type Parameters

  • Result = {
        [key: string]: any;
    }

  • Variables = {
        [key: string]: any;
    }

Generated using TypeDoc