Skip to content

Commit b0e53b5

Browse files
committed
Merge pull request #42 from OlegIlyenko/master
Directive name is not-null
2 parents 9737830 + 9a3e888 commit b0e53b5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/type/__tests__/introspection.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,14 @@ describe('Introspection', () => {
790790
args: [],
791791
type: {
792792
__typename: '__Type',
793-
kind: 'SCALAR',
794-
name: 'String',
795-
ofType: null,
793+
kind: 'NON_NULL',
794+
name: null,
795+
ofType: {
796+
__typename: '__Type',
797+
kind: 'SCALAR',
798+
name: 'String',
799+
ofType: null
800+
}
796801
},
797802
isDeprecated: false,
798803
deprecationReason: null

src/type/introspection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export var __Schema = new GraphQLObjectType({
6060
var __Directive = new GraphQLObjectType({
6161
name: '__Directive',
6262
fields: () => ({
63-
name: { type: GraphQLString },
63+
name: { type: new GraphQLNonNull(GraphQLString) },
6464
description: { type: GraphQLString },
6565
args: {
6666
type:

0 commit comments

Comments
 (0)