index.mjs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Produce the GraphQL query recommended for a full schema introspection.
  2. // Accepts optional IntrospectionOptions.
  3. export { getIntrospectionQuery } from "./getIntrospectionQuery.mjs";
  4. // Gets the target Operation from a Document.
  5. export { getOperationAST } from "./getOperationAST.mjs"; // Gets the Type for the target Operation AST.
  6. export { getOperationRootType } from "./getOperationRootType.mjs"; // Convert a GraphQLSchema to an IntrospectionQuery.
  7. export { introspectionFromSchema } from "./introspectionFromSchema.mjs"; // Build a GraphQLSchema from an introspection result.
  8. export { buildClientSchema } from "./buildClientSchema.mjs"; // Build a GraphQLSchema from GraphQL Schema language.
  9. export { buildASTSchema, buildSchema } from "./buildASTSchema.mjs";
  10. // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
  11. export { extendSchema // @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 "./extendSchema.mjs"; // Sort a GraphQLSchema.
  14. export { lexicographicSortSchema } from "./lexicographicSortSchema.mjs"; // Print a GraphQLSchema to GraphQL Schema language.
  15. export { printSchema, printType, printIntrospectionSchema } from "./printSchema.mjs"; // Create a GraphQLType from a GraphQL language AST.
  16. export { typeFromAST } from "./typeFromAST.mjs"; // Create a JavaScript value from a GraphQL language AST with a type.
  17. export { valueFromAST } from "./valueFromAST.mjs"; // Create a JavaScript value from a GraphQL language AST without a type.
  18. export { valueFromASTUntyped } from "./valueFromASTUntyped.mjs"; // Create a GraphQL language AST from a JavaScript value.
  19. export { astFromValue } from "./astFromValue.mjs"; // A helper to use within recursive-descent visitors which need to be aware of
  20. // the GraphQL type system.
  21. export { TypeInfo, visitWithTypeInfo } from "./TypeInfo.mjs"; // Coerces a JavaScript value to a GraphQL type, or produces errors.
  22. export { coerceInputValue } from "./coerceInputValue.mjs"; // Concatenates multiple AST together.
  23. export { concatAST } from "./concatAST.mjs"; // Separates an AST into an AST per Operation.
  24. export { separateOperations } from "./separateOperations.mjs"; // Strips characters that are not significant to the validity or execution
  25. // of a GraphQL document.
  26. export { stripIgnoredCharacters } from "./stripIgnoredCharacters.mjs"; // Comparators for types
  27. export { isEqualType, isTypeSubTypeOf, doTypesOverlap } from "./typeComparators.mjs"; // Asserts that a string is a valid GraphQL name
  28. export { assertValidName, isValidNameError } from "./assertValidName.mjs"; // Compares two GraphQLSchemas and detects breaking changes.
  29. export { BreakingChangeType, DangerousChangeType, findBreakingChanges, findDangerousChanges } from "./findBreakingChanges.mjs";
  30. // @deprecated: Report all deprecated usage within a GraphQL document.
  31. export { findDeprecatedUsages } from "./findDeprecatedUsages.mjs";