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

Method ___Directive_args

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

Source from the content-addressed store, hash-verified

5087}
5088
5089func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
5090 fc, err := ec.fieldContext___Directive_args(ctx, field)
5091 if err != nil {
5092 return graphql.Null
5093 }
5094 ctx = graphql.WithFieldContext(ctx, fc)
5095 defer func() {
5096 if r := recover(); r != nil {
5097 ec.Error(ctx, ec.Recover(ctx, r))
5098 ret = graphql.Null
5099 }
5100 }()
5101 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5102 ctx = rctx // use context from middleware stack in children
5103 return obj.Args, nil
5104 })
5105 if err != nil {
5106 ec.Error(ctx, err)
5107 return graphql.Null
5108 }
5109 if resTmp == nil {
5110 if !graphql.HasFieldError(ctx, fc) {
5111 ec.Errorf(ctx, "must not be null")
5112 }
5113 return graphql.Null
5114 }
5115 res := resTmp.([]introspection.InputValue)
5116 fc.Result = res
5117 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
5118}
5119
5120func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5121 fc = &graphql.FieldContext{

Callers 1

___DirectiveMethod · 0.95

Tested by

no test coverage detected