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 @@ -176,12 +176,18 @@ export const GraphQLDeferDirective = new GraphQLDirective({
176
176
'Directs the executor to defer this fragment when the `if` argument is true or undefined.' ,
177
177
locations : [
178
178
DirectiveLocation . FRAGMENT_SPREAD ,
179
+ // TODO: Do we want to support on inline fragments? (Can we? How would you make label unique?)
179
180
DirectiveLocation . INLINE_FRAGMENT ,
180
181
] ,
181
182
args : {
182
183
if : {
183
184
type : GraphQLBoolean ,
184
- description : 'Defer fragment when true or undefined.' ,
185
+ description : 'Deferred when true or undefined.' ,
186
+ } ,
187
+ label : {
188
+ type : GraphQLNonNull ( GraphQLString ) ,
189
+ description : 'Unique name' ,
190
+ // TODO: Add defaultValue for label?
185
191
} ,
186
192
} ,
187
193
} ) ;
You can’t perform that action at this time.
0 commit comments