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

Method ___Field_args

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

Source from the content-addressed store, hash-verified

5440}
5441
5442func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5443 fc, err := ec.fieldContext___Field_args(ctx, field)
5444 if err != nil {
5445 return graphql.Null
5446 }
5447 ctx = graphql.WithFieldContext(ctx, fc)
5448 defer func() {
5449 if r := recover(); r != nil {
5450 ec.Error(ctx, ec.Recover(ctx, r))
5451 ret = graphql.Null
5452 }
5453 }()
5454 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5455 ctx = rctx // use context from middleware stack in children
5456 return obj.Args, nil
5457 })
5458 if err != nil {
5459 ec.Error(ctx, err)
5460 return graphql.Null
5461 }
5462 if resTmp == nil {
5463 if !graphql.HasFieldError(ctx, fc) {
5464 ec.Errorf(ctx, "must not be null")
5465 }
5466 return graphql.Null
5467 }
5468 res := resTmp.([]introspection.InputValue)
5469 fc.Result = res
5470 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
5471}
5472
5473func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5474 fc = &graphql.FieldContext{

Callers 1

___FieldMethod · 0.95

Tested by

no test coverage detected