UNPKG

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