index.mjs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // The GraphQL query recommended for a full schema introspection.
  2. export { // Produce the GraphQL query recommended for a full schema introspection.
  3. // Accepts optional IntrospectionOptions.
  4. getIntrospectionQuery, // @deprecated, use getIntrospectionQuery() - will be removed in v15.
  5. introspectionQuery } from './introspectionQuery';
  6. // Gets the target Operation from a Document.
  7. export { getOperationAST } from './getOperationAST'; // Gets the Type for the target Operation AST.
  8. export { getOperationRootType } from './getOperationRootType'; // Convert a GraphQLSchema to an IntrospectionQuery.
  9. export { introspectionFromSchema } from './introspectionFromSchema'; // Build a GraphQLSchema from an introspection result.
  10. export { buildClientSchema } from './buildClientSchema'; // Build a GraphQLSchema from GraphQL Schema language.
  11. export { buildASTSchema, buildSchema, // @deprecated: Get the description from a schema AST node and supports legacy
  12. // syntax for specifying descriptions - will be removed in v16.
  13. getDescription } from './buildASTSchema';
  14. // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
  15. export { extendSchema } from './extendSchema'; // Sort a GraphQLSchema.
  16. export { lexicographicSortSchema } from './lexicographicSortSchema'; // Print a GraphQLSchema to GraphQL Schema language.
  17. export { printSchema, printType, printIntrospectionSchema } from './schemaPrinter'; // Create a GraphQLType from a GraphQL language AST.
  18. export { typeFromAST } from './typeFromAST'; // Create a JavaScript value from a GraphQL language AST with a type.
  19. export { valueFromAST } from './valueFromAST'; // Create a JavaScript value from a GraphQL language AST without a type.
  20. export { valueFromASTUntyped } from './valueFromASTUntyped'; // Create a GraphQL language AST from a JavaScript value.
  21. export { astFromValue } from './astFromValue'; // A helper to use within recursive-descent visitors which need to be aware of
  22. // the GraphQL type system.
  23. export { TypeInfo } from './TypeInfo'; // Coerces a JavaScript value to a GraphQL type, or produces errors.
  24. export { coerceInputValue } from './coerceInputValue'; // @deprecated use coerceInputValue - will be removed in v15.
  25. export { coerceValue } from './coerceValue'; // @deprecated use coerceInputValue - will be removed in v15.
  26. export { isValidJSValue } from './isValidJSValue'; // @deprecated use validation - will be removed in v15
  27. export { isValidLiteralValue } from './isValidLiteralValue'; // Concatenates multiple AST together.
  28. export { concatAST } from './concatAST'; // Separates an AST into an AST per Operation.
  29. export { separateOperations } from './separateOperations'; // Strips characters that are not significant to the validity or execution
  30. // of a GraphQL document.
  31. export { stripIgnoredCharacters } from './stripIgnoredCharacters'; // Comparators for types
  32. export { isEqualType, isTypeSubTypeOf, doTypesOverlap } from './typeComparators'; // Asserts that a string is a valid GraphQL name
  33. export { assertValidName, isValidNameError } from './assertValidName'; // Compares two GraphQLSchemas and detects breaking changes.
  34. export { BreakingChangeType, DangerousChangeType, findBreakingChanges, findDangerousChanges } from './findBreakingChanges';
  35. // Report all deprecated usage within a GraphQL document.
  36. export { findDeprecatedUsages } from './findDeprecatedUsages';