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

    Interface GraphQLRequest<V>

    A single GraphQL request (spec §6.2).

    interface GraphQLRequest<V = Record<string, unknown>> {
        query: string;
        variables?: V;
        operationName?: string;
        extensions?: Record<string, unknown>;
        headers?: Record<string, string>;
    }

    Type Parameters

    • V = Record<string, unknown>
    Index

    Properties

    query: string

    The GraphQL query, mutation, or subscription document

    variables?: V

    Variable values keyed by name (spec §6.2.2)

    operationName?: string

    Named operation to execute (required when the document has >1 operation)

    extensions?: Record<string, unknown>

    Implementation-specific extensions (APQ, tracing, etc.)

    headers?: Record<string, string>

    Per-request headers (merged into client-level headers)