File tree Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -651,9 +651,13 @@ describe('Introspection', () => {
651
651
name : 'onOperation' ,
652
652
args : [ ] ,
653
653
type : {
654
- kind : 'SCALAR' ,
655
- name : 'Boolean' ,
656
- ofType : null ,
654
+ kind : 'NON_NULL' ,
655
+ name : null ,
656
+ ofType : {
657
+ kind : 'SCALAR' ,
658
+ name : 'Boolean' ,
659
+ ofType : null ,
660
+ } ,
657
661
} ,
658
662
isDeprecated : false ,
659
663
deprecationReason : null
@@ -662,9 +666,13 @@ describe('Introspection', () => {
662
666
name : 'onFragment' ,
663
667
args : [ ] ,
664
668
type : {
665
- kind : 'SCALAR' ,
666
- name : 'Boolean' ,
667
- ofType : null ,
669
+ kind : 'NON_NULL' ,
670
+ name : null ,
671
+ ofType : {
672
+ kind : 'SCALAR' ,
673
+ name : 'Boolean' ,
674
+ ofType : null ,
675
+ } ,
668
676
} ,
669
677
isDeprecated : false ,
670
678
deprecationReason : null
@@ -673,9 +681,13 @@ describe('Introspection', () => {
673
681
name : 'onField' ,
674
682
args : [ ] ,
675
683
type : {
676
- kind : 'SCALAR' ,
677
- name : 'Boolean' ,
678
- ofType : null ,
684
+ kind : 'NON_NULL' ,
685
+ name : null ,
686
+ ofType : {
687
+ kind : 'SCALAR' ,
688
+ name : 'Boolean' ,
689
+ ofType : null ,
690
+ } ,
679
691
} ,
680
692
isDeprecated : false ,
681
693
deprecationReason : null
Original file line number Diff line number Diff line change @@ -508,9 +508,9 @@ type __Directive {
508
508
name: String!
509
509
description: String
510
510
args: [__InputValue!]!
511
- onOperation: Boolean
512
- onFragment: Boolean
513
- onField: Boolean
511
+ onOperation: Boolean!
512
+ onFragment: Boolean!
513
+ onField: Boolean!
514
514
}
515
515
516
516
type __EnumValue {
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ var __Directive = new GraphQLObjectType({
67
67
new GraphQLNonNull ( new GraphQLList ( new GraphQLNonNull ( __InputValue ) ) ) ,
68
68
resolve : directive => directive . args || [ ]
69
69
} ,
70
- onOperation : { type : GraphQLBoolean } ,
71
- onFragment : { type : GraphQLBoolean } ,
72
- onField : { type : GraphQLBoolean } ,
70
+ onOperation : { type : new GraphQLNonNull ( GraphQLBoolean ) } ,
71
+ onFragment : { type : new GraphQLNonNull ( GraphQLBoolean ) } ,
72
+ onField : { type : new GraphQLNonNull ( GraphQLBoolean ) } ,
73
73
} ) ,
74
74
} ) ;
75
75
You can’t perform that action at this time.
0 commit comments