Skip to content

Commit

Permalink
Export introspection in public API
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed May 6, 2016
1 parent 980bdf4 commit 71b6a4a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/index.js
Expand Up @@ -53,6 +53,12 @@ export {
GraphQLNonNull,
GraphQLDirective,

// "Enum" of Type Kinds
TypeKind,

// "Enum" of Directive Locations
DirectiveLocation,

// Scalars
GraphQLInt,
GraphQLFloat,
Expand All @@ -64,6 +70,21 @@ export {
GraphQLIncludeDirective,
GraphQLSkipDirective,

// Meta-field definitions.
SchemaMetaFieldDef,
TypeMetaFieldDef,
TypeNameMetaFieldDef,

// GraphQL Types for introspection.
__Schema,
__Directive,
__DirectiveLocation,
__Type,
__Field,
__InputValue,
__EnumValue,
__TypeKind,

// Predicates
isType,
isInputType,
Expand Down
23 changes: 23 additions & 0 deletions src/type/index.js
Expand Up @@ -36,6 +36,9 @@ export {
} from './definition';

export {
// "Enum" of Directive Locations
DirectiveLocation,

// Directives Definition
GraphQLDirective,

Expand All @@ -52,3 +55,23 @@ export {
GraphQLBoolean,
GraphQLID,
} from './scalars';

export {
// "Enum" of Type Kinds
TypeKind,

// GraphQL Types for introspection.
__Schema,
__Directive,
__DirectiveLocation,
__Type,
__Field,
__InputValue,
__EnumValue,
__TypeKind,

// Meta-field definitions.
SchemaMetaFieldDef,
TypeMetaFieldDef,
TypeNameMetaFieldDef,
} from './introspection';

0 comments on commit 71b6a4a

Please sign in to comment.