File tree 3 files changed +0
-74
lines changed 3 files changed +0
-74
lines changed Original file line number Diff line number Diff line change @@ -698,51 +698,6 @@ describe('Introspection', () => {
698
698
isDeprecated : false ,
699
699
deprecationReason : null ,
700
700
} ,
701
- {
702
- name : 'onOperation' ,
703
- args : [ ] ,
704
- type : {
705
- kind : 'NON_NULL' ,
706
- name : null ,
707
- ofType : {
708
- kind : 'SCALAR' ,
709
- name : 'Boolean' ,
710
- ofType : null ,
711
- } ,
712
- } ,
713
- isDeprecated : true ,
714
- deprecationReason : 'Use `locations`.' ,
715
- } ,
716
- {
717
- name : 'onFragment' ,
718
- args : [ ] ,
719
- type : {
720
- kind : 'NON_NULL' ,
721
- name : null ,
722
- ofType : {
723
- kind : 'SCALAR' ,
724
- name : 'Boolean' ,
725
- ofType : null ,
726
- } ,
727
- } ,
728
- isDeprecated : true ,
729
- deprecationReason : 'Use `locations`.' ,
730
- } ,
731
- {
732
- name : 'onField' ,
733
- args : [ ] ,
734
- type : {
735
- kind : 'NON_NULL' ,
736
- name : null ,
737
- ofType : {
738
- kind : 'SCALAR' ,
739
- name : 'Boolean' ,
740
- ofType : null ,
741
- } ,
742
- } ,
743
- isDeprecated : true ,
744
- deprecationReason : 'Use `locations`.' ,
745
- } ,
746
701
] ,
747
702
inputFields : null ,
748
703
interfaces : [ ] ,
Original file line number Diff line number Diff line change @@ -100,29 +100,6 @@ export const __Directive = new GraphQLObjectType({
100
100
type : GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue ) ) ) ,
101
101
resolve : directive => directive . args || [ ] ,
102
102
} ,
103
- // NOTE: the following three fields are deprecated and are no longer part
104
- // of the GraphQL specification.
105
- onOperation : {
106
- deprecationReason : 'Use `locations`.' ,
107
- type : GraphQLNonNull ( GraphQLBoolean ) ,
108
- resolve : d =>
109
- d . locations . indexOf ( DirectiveLocation . QUERY ) !== - 1 ||
110
- d . locations . indexOf ( DirectiveLocation . MUTATION ) !== - 1 ||
111
- d . locations . indexOf ( DirectiveLocation . SUBSCRIPTION ) !== - 1 ,
112
- } ,
113
- onFragment : {
114
- deprecationReason : 'Use `locations`.' ,
115
- type : GraphQLNonNull ( GraphQLBoolean ) ,
116
- resolve : d =>
117
- d . locations . indexOf ( DirectiveLocation . FRAGMENT_SPREAD ) !== - 1 ||
118
- d . locations . indexOf ( DirectiveLocation . INLINE_FRAGMENT ) !== - 1 ||
119
- d . locations . indexOf ( DirectiveLocation . FRAGMENT_DEFINITION ) !== - 1 ,
120
- } ,
121
- onField : {
122
- deprecationReason : 'Use `locations`.' ,
123
- type : GraphQLNonNull ( GraphQLBoolean ) ,
124
- resolve : d => d . locations . indexOf ( DirectiveLocation . FIELD ) !== - 1 ,
125
- } ,
126
103
} ) ,
127
104
} ) ;
128
105
Original file line number Diff line number Diff line change @@ -648,9 +648,6 @@ describe('Type System Printer', () => {
648
648
description: String
649
649
locations: [__DirectiveLocation!]!
650
650
args: [__InputValue!]!
651
- onOperation: Boolean! @deprecated(reason: "Use \`locations\`.")
652
- onFragment: Boolean! @deprecated(reason: "Use \`locations\`.")
653
- onField: Boolean! @deprecated(reason: "Use \`locations\`.")
654
651
}
655
652
656
653
"""
@@ -881,9 +878,6 @@ describe('Type System Printer', () => {
881
878
description: String
882
879
locations: [__DirectiveLocation!]!
883
880
args: [__InputValue!]!
884
- onOperation: Boolean! @deprecated(reason: "Use \`locations\`.")
885
- onFragment: Boolean! @deprecated(reason: "Use \`locations\`.")
886
- onField: Boolean! @deprecated(reason: "Use \`locations\`.")
887
881
}
888
882
889
883
# A Directive can be adjacent to many parts of the GraphQL language, a
You can’t perform that action at this time.
0 commit comments