File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,18 @@ export const GraphQLDeferDirective = new GraphQLDirective({
179
179
'Directs the executor to defer this fragment when the `if` argument is true or undefined.' ,
180
180
locations : [
181
181
DirectiveLocation . FRAGMENT_SPREAD ,
182
+ // TODO: Do we want to support on inline fragments? (Can we? How would you make label unique?)
182
183
DirectiveLocation . INLINE_FRAGMENT ,
183
184
] ,
184
185
args : {
185
186
if : {
186
187
type : GraphQLBoolean ,
187
- description : 'Defer fragment when true or undefined.' ,
188
+ description : 'Deferred when true or undefined.' ,
189
+ } ,
190
+ label : {
191
+ type : GraphQLNonNull ( GraphQLString ) ,
192
+ description : 'Unique name' ,
193
+ // TODO: Add defaultValue for label?
188
194
} ,
189
195
} ,
190
196
} ) ;
You can’t perform that action at this time.
0 commit comments