introspectionFromSchema.d.ts 627 B

1234567891011121314151617181920
  1. import { GraphQLSchema } from '../type/schema';
  2. import {
  3. IntrospectionQuery,
  4. IntrospectionOptions,
  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. */
  15. export function introspectionFromSchema(
  16. schema: GraphQLSchema,
  17. options?: IntrospectionOptions,
  18. ): IntrospectionQuery;