introspectionFromSchema.d.ts 643 B

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