graphqlade

    Interface IntrospectionOptions

    interface IntrospectionOptions {
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        file?: string;
        getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
        request?: IntrospectionRequestFn;
        url: string;
    }
    Index

    Properties

    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Type declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    file?: string

    Write introspection to this file when successful. Also used as fallback in case introspection via URL fails.

    getHeaders?: () => Record<string, string> | Promise<Record<string, string>>

    Request function to use for introspection. Can also be used to run e.g. authentication beforehand.

    url: string

    URL of GraphQL API to fetch introspection from.

    MMNEPVFCICPMFPCPTTAAATR