UNPKG

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