Skip to content

Commit 980bdf4

Browse files
committed
Export directive definitions. (#381)
This exports the ability to define new directives as well as access the built-in @Skip and @include definitions.
1 parent 44768a8 commit 980bdf4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export {
5151
GraphQLInputObjectType,
5252
GraphQLList,
5353
GraphQLNonNull,
54+
GraphQLDirective,
5455

5556
// Scalars
5657
GraphQLInt,
@@ -59,6 +60,10 @@ export {
5960
GraphQLBoolean,
6061
GraphQLID,
6162

63+
// Built-in Directives
64+
GraphQLIncludeDirective,
65+
GraphQLSkipDirective,
66+
6267
// Predicates
6368
isType,
6469
isInputType,

src/type/index.js

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

38+
export {
39+
// Directives Definition
40+
GraphQLDirective,
41+
42+
// Built-in Directives
43+
GraphQLIncludeDirective,
44+
GraphQLSkipDirective,
45+
} from './directives';
46+
3847
// Common built-in scalar instances.
3948
export {
4049
GraphQLInt,

0 commit comments

Comments
 (0)