UNPKG

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