GraphiQL API Documentation
    Preparing search index...

    Type Alias TransportRequest

    type TransportRequest = {
        extensions?: Record<string, unknown>;
        headers?: Record<string, string>;
        operationName?: string | null;
        query: string;
        signal?: AbortSignal;
        variables?: Record<string, unknown>;
    }
    Index
    extensions?: Record<string, unknown>

    GraphQL-over-HTTP extensions, e.g. for automatic persisted queries. JSON-stringified into the URL for GET; included in the JSON request body for POST and QUERY.

    headers?: Record<string, string>

    Per-request headers, merged with (and overriding) the static headers passed to createTransport.

    operationName?: string | null
    query: string
    signal?: AbortSignal

    Aborts the request. For subscriptions, prefer stopping the returned AsyncIterable (call .return() on its iterator) instead — an aborted signal only cancels the initial HTTP request, not an open socket.

    variables?: Record<string, unknown>