index.js.flow 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // @flow strict
  2. // Produce the GraphQL query recommended for a full schema introspection.
  3. // Accepts optional IntrospectionOptions.
  4. export { getIntrospectionQuery } from './getIntrospectionQuery';
  5. export type {
  6. IntrospectionOptions,
  7. IntrospectionQuery,
  8. IntrospectionSchema,
  9. IntrospectionType,
  10. IntrospectionInputType,
  11. IntrospectionOutputType,
  12. IntrospectionScalarType,
  13. IntrospectionObjectType,
  14. IntrospectionInterfaceType,
  15. IntrospectionUnionType,
  16. IntrospectionEnumType,
  17. IntrospectionInputObjectType,
  18. IntrospectionTypeRef,
  19. IntrospectionInputTypeRef,
  20. IntrospectionOutputTypeRef,
  21. IntrospectionNamedTypeRef,
  22. IntrospectionListTypeRef,
  23. IntrospectionNonNullTypeRef,
  24. IntrospectionField,
  25. IntrospectionInputValue,
  26. IntrospectionEnumValue,
  27. IntrospectionDirective,
  28. } from './getIntrospectionQuery';
  29. // Gets the target Operation from a Document.
  30. export { getOperationAST } from './getOperationAST';
  31. // Gets the Type for the target Operation AST.
  32. export { getOperationRootType } from './getOperationRootType';
  33. // Convert a GraphQLSchema to an IntrospectionQuery.
  34. export { introspectionFromSchema } from './introspectionFromSchema';
  35. // Build a GraphQLSchema from an introspection result.
  36. export { buildClientSchema } from './buildClientSchema';
  37. // Build a GraphQLSchema from GraphQL Schema language.
  38. export { buildASTSchema, buildSchema } from './buildASTSchema';
  39. export type { BuildSchemaOptions } from './buildASTSchema';
  40. // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
  41. export {
  42. extendSchema,
  43. // @deprecated: Get the description from a schema AST node and supports legacy
  44. // syntax for specifying descriptions - will be removed in v16.
  45. getDescription,
  46. } from './extendSchema';
  47. // Sort a GraphQLSchema.
  48. export { lexicographicSortSchema } from './lexicographicSortSchema';
  49. // Print a GraphQLSchema to GraphQL Schema language.
  50. export {
  51. printSchema,
  52. printType,
  53. printIntrospectionSchema,
  54. } from './printSchema';
  55. // Create a GraphQLType from a GraphQL language AST.
  56. export { typeFromAST } from './typeFromAST';
  57. // Create a JavaScript value from a GraphQL language AST with a type.
  58. export { valueFromAST } from './valueFromAST';
  59. // Create a JavaScript value from a GraphQL language AST without a type.
  60. export { valueFromASTUntyped } from './valueFromASTUntyped';
  61. // Create a GraphQL language AST from a JavaScript value.
  62. export { astFromValue } from './astFromValue';
  63. // A helper to use within recursive-descent visitors which need to be aware of
  64. // the GraphQL type system.
  65. export { TypeInfo, visitWithTypeInfo } from './TypeInfo';
  66. // Coerces a JavaScript value to a GraphQL type, or produces errors.
  67. export { coerceInputValue } from './coerceInputValue';
  68. // Concatenates multiple AST together.
  69. export { concatAST } from './concatAST';
  70. // Separates an AST into an AST per Operation.
  71. export { separateOperations } from './separateOperations';
  72. // Strips characters that are not significant to the validity or execution
  73. // of a GraphQL document.
  74. export { stripIgnoredCharacters } from './stripIgnoredCharacters';
  75. // Comparators for types
  76. export {
  77. isEqualType,
  78. isTypeSubTypeOf,
  79. doTypesOverlap,
  80. } from './typeComparators';
  81. // Asserts that a string is a valid GraphQL name
  82. export { assertValidName, isValidNameError } from './assertValidName';
  83. // Compares two GraphQLSchemas and detects breaking changes.
  84. export {
  85. BreakingChangeType,
  86. DangerousChangeType,
  87. findBreakingChanges,
  88. findDangerousChanges,
  89. } from './findBreakingChanges';
  90. export type { BreakingChange, DangerousChange } from './findBreakingChanges';
  91. // @deprecated: Report all deprecated usage within a GraphQL document.
  92. export { findDeprecatedUsages } from './findDeprecatedUsages';