From f4872ff7cbc8e17242fd622b5b1acca6c278b690 Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Fri, 6 May 2016 12:00:48 -0700 Subject: [PATCH] Export directive definitions. This exports the ability to define new directives as well as access the built-in @skip and @include definitions. --- src/index.js | 5 +++++ src/type/index.js | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/src/index.js b/src/index.js index 949eaae073..f8ceecd9dc 100644 --- a/src/index.js +++ b/src/index.js @@ -51,6 +51,7 @@ export { GraphQLInputObjectType, GraphQLList, GraphQLNonNull, + GraphQLDirective, // Scalars GraphQLInt, @@ -59,6 +60,10 @@ export { GraphQLBoolean, GraphQLID, + // Built-in Directives + GraphQLIncludeDirective, + GraphQLSkipDirective, + // Predicates isType, isInputType, diff --git a/src/type/index.js b/src/type/index.js index 009b019601..8100c0f1a8 100644 --- a/src/type/index.js +++ b/src/type/index.js @@ -35,6 +35,15 @@ export { GraphQLNonNull, } from './definition'; +export { + // Directives Definition + GraphQLDirective, + + // Built-in Directives + GraphQLIncludeDirective, + GraphQLSkipDirective, +} from './directives'; + // Common built-in scalar instances. export { GraphQLInt,