UNPKG

643 BTypeScriptView Raw
1import type { GraphQLSchema } from '../type/schema';
2import type {
3 IntrospectionOptions,
4 IntrospectionQuery,
5} from './getIntrospectionQuery';
6/**
7 * Build an IntrospectionQuery from a GraphQLSchema
8 *
9 * IntrospectionQuery is useful for utilities that care about type and field
10 * relationships, but do not need to traverse through those relationships.
11 *
12 * This is the inverse of buildClientSchema. The primary use case is outside
13 * of the server context, for instance when doing schema comparisons.
14 */
15export declare function introspectionFromSchema(
16 schema: GraphQLSchema,
17 options?: IntrospectionOptions,
18): IntrospectionQuery;