MCPcopy Create free account
hub / github.com/encoder-run/operator / ___Field_deprecationReason

Method ___Field_deprecationReason

pkg/graph/generated.go:5606–5632  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *introspection.Field)

Source from the content-addressed store, hash-verified

5604}
5605
5606func (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
5634func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5635 fc = &graphql.FieldContext{

Callers 1

___FieldMethod · 0.95

Tested by

no test coverage detected