index.d.ts 3.9 KB

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