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