(ctx context.Context, field graphql.CollectedField, obj *introspection.Field)
| 5604 | } |
| 5605 | |
| 5606 | func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { |
| 5607 | fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) |
| 5608 | if err != nil { |
| 5609 | return graphql.Null |
| 5610 | } |
| 5611 | ctx = graphql.WithFieldContext(ctx, fc) |
| 5612 | defer func() { |
| 5613 | if r := recover(); r != nil { |
| 5614 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 5615 | ret = graphql.Null |
| 5616 | } |
| 5617 | }() |
| 5618 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 5619 | ctx = rctx // use context from middleware stack in children |
| 5620 | return obj.DeprecationReason(), nil |
| 5621 | }) |
| 5622 | if err != nil { |
| 5623 | ec.Error(ctx, err) |
| 5624 | return graphql.Null |
| 5625 | } |
| 5626 | if resTmp == nil { |
| 5627 | return graphql.Null |
| 5628 | } |
| 5629 | res := resTmp.(*string) |
| 5630 | fc.Result = res |
| 5631 | return ec.marshalOString2ᚖstring(ctx, field.Selections, res) |
| 5632 | } |
| 5633 | |
| 5634 | func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 5635 | fc = &graphql.FieldContext{ |
no test coverage detected