Interface IntrospectionOptions

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

Properties

fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • 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.