introspectionFromSchema.d.ts 618 B

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