kinetex - v1.0.0-rc.1
    Preparing search index...

    Function gql

    • Minimal one-shot query helper — no client instantiation needed. Creates a temporary GraphQLClient and executes the query.

      Type Parameters

      • T = unknown

        Shape of the expected data object

      Parameters

      • url: string

        GraphQL endpoint URL

      • query: string

        GraphQL query string

      • Optionalvariables: Record<string, unknown>

        Optional query variables

      • Optionalheaders: Record<string, string>

        Optional request headers

      Returns Promise<T>

      The data field from the GraphQL response