index.js.flow 4.1 KB

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