@@ -151,6 +151,7 @@ type __Type {
151
151
ofType : __Type
152
152
# may be non-null for custom SCALAR, otherwise null.
153
153
specifiedByURL : String
154
+ directives : [__AppliedDirective ! ]
154
155
}
155
156
156
157
enum __TypeKind {
@@ -171,6 +172,7 @@ type __Field {
171
172
type : __Type !
172
173
isDeprecated : Boolean !
173
174
deprecationReason : String
175
+ directives : [__AppliedDirective ! ]
174
176
}
175
177
176
178
type __InputValue {
@@ -180,13 +182,15 @@ type __InputValue {
180
182
defaultValue : String
181
183
isDeprecated : Boolean !
182
184
deprecationReason : String
185
+ directives : [__AppliedDirective ! ]
183
186
}
184
187
185
188
type __EnumValue {
186
189
name : String !
187
190
description : String
188
191
isDeprecated : Boolean !
189
192
deprecationReason : String
193
+ directives : [__AppliedDirective ! ]
190
194
}
191
195
192
196
type __Directive {
@@ -197,6 +201,16 @@ type __Directive {
197
201
isRepeatable : Boolean !
198
202
}
199
203
204
+ type __AppliedDirective {
205
+ name : String !
206
+ args : [__DirectiveArgument ! ]!
207
+ }
208
+
209
+ type __DirectiveArgument {
210
+ name : String !
211
+ value : String !
212
+ }
213
+
200
214
enum __DirectiveLocation {
201
215
QUERY
202
216
MUTATION
@@ -280,6 +294,7 @@ Fields\:
280
294
- ` specifiedByURL ` may return a String (in the form of a URL) for custom
281
295
scalars, otherwise must be {null}.
282
296
- All other fields must return {null}.
297
+ - ` directives ` must return the ordered set of directives applied to this scalar.
283
298
284
299
** Object**
285
300
@@ -297,6 +312,7 @@ Fields\:
297
312
- ` interfaces ` must return the set of interfaces that an object implements (if
298
313
none, ` interfaces ` must return the empty set).
299
314
- All other fields must return {null}.
315
+ - ` directives ` must return the ordered set of directives applied to this type.
300
316
301
317
** Union**
302
318
@@ -312,6 +328,7 @@ Fields\:
312
328
- ` possibleTypes ` returns the list of types that can be represented within this
313
329
union. They must be object types.
314
330
- All other fields must return {null}.
331
+ - ` directives ` must return the ordered set of directives applied to this union.
315
332
316
333
** Interface**
317
334
@@ -334,6 +351,7 @@ Fields\:
334
351
- ` possibleTypes ` returns the list of types that implement this interface. They
335
352
must be object types.
336
353
- All other fields must return {null}.
354
+ - ` directives ` must return the ordered set of directives applied to this interface.
337
355
338
356
** Enum**
339
357
@@ -349,6 +367,7 @@ Fields\:
349
367
- Accepts the argument ` includeDeprecated ` which defaults to {false}. If
350
368
{true}, deprecated enum values are also returned.
351
369
- All other fields must return {null}.
370
+ - ` directives ` must return the ordered set of directives applied to this enum.
352
371
353
372
** Input Object**
354
373
@@ -374,6 +393,7 @@ Fields\:
374
393
- Accepts the argument `includeDeprecated ` which defaults to {false }. If
375
394
{true }, deprecated input fields are also returned .
376
395
- All other fields must return {null }.
396
+ - `directives ` must return the ordered set of directives applied to this input -object .
377
397
378
398
**List **
379
399
@@ -425,6 +445,7 @@ Fields\:
425
445
- `isDeprecated ` returns {true } if this field should no longer be used ,
426
446
otherwise {false }.
427
447
- `deprecationReason ` optionally provides a reason why this field is deprecated .
448
+ - `directives ` must return the ordered set of directives applied to this field .
428
449
429
450
### The \_\_InputValue Type
430
451
@@ -444,6 +465,7 @@ Fields\:
444
465
be used , otherwise {false }.
445
466
- `deprecationReason ` optionally provides a reason why this input field or
446
467
argument is deprecated .
468
+ - `directives ` must return the ordered set of directives applied to this input value .
447
469
448
470
### The \_\_EnumValue Type
449
471
@@ -457,6 +479,7 @@ Fields\:
457
479
otherwise {false }.
458
480
- `deprecationReason ` optionally provides a reason why this enum value is
459
481
deprecated.
482
+ - `directives` must return the ordered set of directives applied to this enum-value.
460
483
461
484
### The \_\_Directive Type
462
485
@@ -499,3 +522,25 @@ Fields\:
499
522
{true }, deprecated arguments are also returned .
500
523
- `isRepeatable ` must return a Boolean that indicates if the directive may be
501
524
used repeatedly at a single location .
525
+
526
+ ### The \_\_AppliedDirective Type
527
+
528
+ The `__AppliedDirective ` type represents a directive applied to a schema element.
529
+
530
+ This includes both any _built-in directive_ and any _custom directive_.
531
+
532
+ Fields\:
533
+
534
+ - `name` must return a String
535
+ - `args` returns a List of `__DirectiveArgument` representing the arguments this
536
+ directive accepts.
537
+
538
+ ### The \_\_DirectiveArgument Type
539
+
540
+ The `__DirectiveArgument` type represents an argument specified in a directive applied
541
+ to an element in the schema..
542
+
543
+ Fields\:
544
+
545
+ - `name` must return a String
546
+ - `value` must return the value for the argument as a string
0 commit comments