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

Method ___Field_description

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

Source from the content-addressed store, hash-verified

5399}
5400
5401func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5402 fc, err := ec.fieldContext___Field_description(ctx, field)
5403 if err != nil {
5404 return graphql.Null
5405 }
5406 ctx = graphql.WithFieldContext(ctx, fc)
5407 defer func() {
5408 if r := recover(); r != nil {
5409 ec.Error(ctx, ec.Recover(ctx, r))
5410 ret = graphql.Null
5411 }
5412 }()
5413 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5414 ctx = rctx // use context from middleware stack in children
5415 return obj.Description(), nil
5416 })
5417 if err != nil {
5418 ec.Error(ctx, err)
5419 return graphql.Null
5420 }
5421 if resTmp == nil {
5422 return graphql.Null
5423 }
5424 res := resTmp.(*string)
5425 fc.Result = res
5426 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5427}
5428
5429func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5430 fc = &graphql.FieldContext{

Callers 1

___FieldMethod · 0.95

Tested by

no test coverage detected