(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive)
| 5087 | } |
| 5088 | |
| 5089 | func (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 | |
| 5120 | func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 5121 | fc = &graphql.FieldContext{ |
no test coverage detected