8000 Export introspection in public API · graphql/graphql-js@71b6a4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 71b6a4a

Browse files
committed
Export introspection in public API
1 parent 980bdf4 commit 71b6a4a

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

src/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ export {
5353
GraphQLNonNull,
5454
GraphQLDirective,
5555

56+
// "Enum" of Type Kinds
57+
TypeKind,
58+
59+
// "Enum" of Directive Locations
60+
DirectiveLocation,
61+
5662
// Scalars
5763
GraphQLInt,
5864
GraphQLFloat,
@@ -64,6 +70,21 @@ export {
6470
GraphQLIncludeDirective,
6571
GraphQLSkipDirective,
6672

73+
// Meta-field definitions.
74+
SchemaMetaFieldDef,
75+
TypeMetaFieldDef,
76+
TypeNameMetaFieldDef,
77+
78+
// GraphQL Types for introspection.
79+
__Schema,
80+
__Directive,
81+
__DirectiveLocation,
82+
__Type,
83+
__Field,
84+
__InputValue,
85+
__EnumValue,
86+
__TypeKind,
87+
6788
// Predicates
6889
isType,
6990
isInputType,

src/type/index.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export {
3636
} from './definition';
3737

3838
export {
39+
// "Enum" of Directive Locations
40+
DirectiveLocation,
41+
3942
// Directives Definition
4043
GraphQLDirective,
4144

@@ -52,3 +55,23 @@ export {
5255
GraphQLBoolean,
5356
GraphQLID,
5457
} from './scalars';
58+
59+
export {
60+
// "Enum" of Type Kinds
61+
TypeKind,
62+
63+
// GraphQL Types for introspection.
64+
__Schema,
65+
__Directive,
66+
__DirectiveLocation,
67+
__Type,
68+
__Field,
69+
__InputValue,
70+
__EnumValue,
71+
__TypeKind,
72+
73+
// Meta-field definitions.
74+
SchemaMetaFieldDef,
75+
TypeMetaFieldDef,
76+
TypeNameMetaFieldDef,
77+
} from './introspection';

0 commit comments

Comments
 (0)
0