UNPKG

3.12 kBTypeScriptView Raw
1export { Path as ResponsePath } from '../jsutils/Path';
2
3export {
4 // Predicate
5 isSchema,
6 // Assertion
7 assertSchema,
8 // GraphQL Schema definition
9 GraphQLSchema,
10 GraphQLSchemaConfig,
11} from './schema';
12
13export {
14 // Predicates
15 isType,
16 isScalarType,
17 isObjectType,
18 isInterfaceType,
19 isUnionType,
20 isEnumType,
21 isInputObjectType,
22 isListType,
23 isNonNullType,
24 isInputType,
25 isOutputType,
26 isLeafType,
27 isCompositeType,
28 isAbstractType,
29 isWrappingType,
30 isNullableType,
31 isNamedType,
32 isRequiredArgument,
33 isRequiredInputField,
34 // Assertions
35 assertType,
36 assertScalarType,
37 assertObjectType,
38 assertInterfaceType,
39 assertUnionType,
40 assertEnumType,
41 assertInputObjectType,
42 assertListType,
43 assertNonNullType,
44 assertInputType,
45 assertOutputType,
46 assertLeafType,
47 assertCompositeType,
48 assertAbstractType,
49 assertWrappingType,
50 assertNullableType,
51 assertNamedType,
52 // Un-modifiers
53 getNullableType,
54 getNamedType,
55 // Definitions
56 GraphQLScalarType,
57 GraphQLObjectType,
58 GraphQLInterfaceType,
59 GraphQLUnionType,
60 GraphQLEnumType,
61 GraphQLInputObjectType,
62 // Type Wrappers
63 GraphQLList,
64 GraphQLNonNull,
65 // type
66 GraphQLType,
67 GraphQLInputType,
68 GraphQLOutputType,
69 GraphQLLeafType,
70 GraphQLCompositeType,
71 GraphQLAbstractType,
72 GraphQLWrappingType,
73 GraphQLNullableType,
74 GraphQLNamedType,
75 Thunk,
76 GraphQLArgument,
77 GraphQLArgumentConfig,
78 GraphQLEnumTypeConfig,
79 GraphQLEnumValue,
80 GraphQLEnumValueConfig,
81 GraphQLEnumValueConfigMap,
82 GraphQLField,
83 GraphQLFieldConfig,
84 GraphQLFieldConfigArgumentMap,
85 GraphQLFieldConfigMap,
86 GraphQLFieldMap,
87 GraphQLFieldResolver,
88 GraphQLInputField,
89 GraphQLInputFieldConfig,
90 GraphQLInputFieldConfigMap,
91 GraphQLInputFieldMap,
92 GraphQLInputObjectTypeConfig,
93 GraphQLInterfaceTypeConfig,
94 GraphQLIsTypeOfFn,
95 GraphQLObjectTypeConfig,
96 GraphQLResolveInfo,
97 GraphQLScalarTypeConfig,
98 GraphQLTypeResolver,
99 GraphQLUnionTypeConfig,
100 GraphQLScalarSerializer,
101 GraphQLScalarValueParser,
102 GraphQLScalarLiteralParser,
103} from './definition';
104
105export {
106 // Predicate
107 isDirective,
108 // Assertion
109 assertDirective,
110 // Directives Definition
111 GraphQLDirective,
112 // Built-in Directives defined by the Spec
113 isSpecifiedDirective,
114 specifiedDirectives,
115 GraphQLIncludeDirective,
116 GraphQLSkipDirective,
117 GraphQLDeprecatedDirective,
118 // Constant Deprecation Reason
119 DEFAULT_DEPRECATION_REASON,
120 // type
121 GraphQLDirectiveConfig,
122} from './directives';
123
124// Common built-in scalar instances.
125export {
126 isSpecifiedScalarType,
127 specifiedScalarTypes,
128 GraphQLInt,
129 GraphQLFloat,
130 GraphQLString,
131 GraphQLBoolean,
132 GraphQLID,
133} from './scalars';
134
135export {
136 // "Enum" of Type Kinds
137 TypeKind,
138 // GraphQL Types for introspection.
139 isIntrospectionType,
140 introspectionTypes,
141 __Schema,
142 __Directive,
143 __DirectiveLocation,
144 __Type,
145 __Field,
146 __InputValue,
147 __EnumValue,
148 __TypeKind,
149 // Meta-field definitions.
150 SchemaMetaFieldDef,
151 TypeMetaFieldDef,
152 TypeNameMetaFieldDef,
153} from './introspection';
154
155export { validateSchema, assertValidSchema } from './validate';