We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fa0612 commit d0c0ac3Copy full SHA for d0c0ac3
introspection.go
@@ -312,6 +312,14 @@ func init() {
312
},
313
"deprecationReason": &Field{
314
Type: String,
315
+ Resolve: func(p ResolveParams) (interface{}, error) {
316
+ if field, ok := p.Source.(*FieldDefinition); ok {
317
+ if field.DeprecationReason != "" {
318
+ return field.DeprecationReason, nil
319
+ }
320
321
+ return nil, nil
322
+ },
323
324
325
})
@@ -497,6 +505,14 @@ func init() {
497
505
498
506
499
507
508
509
+ if field, ok := p.Source.(*EnumValueDefinition); ok {
510
511
512
513
514
515
500
516
501
517
502
518
0 commit comments