UNPKG

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