(ctx context.Context, field graphql.CollectedField)
| 3383 | } |
| 3384 | |
| 3385 | func (ec *executionContext) _Query_getPipeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 3386 | fc, err := ec.fieldContext_Query_getPipeline(ctx, field) |
| 3387 | if err != nil { |
| 3388 | return graphql.Null |
| 3389 | } |
| 3390 | ctx = graphql.WithFieldContext(ctx, fc) |
| 3391 | defer func() { |
| 3392 | if r := recover(); r != nil { |
| 3393 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 3394 | ret = graphql.Null |
| 3395 | } |
| 3396 | }() |
| 3397 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 3398 | ctx = rctx // use context from middleware stack in children |
| 3399 | return ec.resolvers.Query().GetPipeline(rctx, fc.Args["id"].(string)) |
| 3400 | }) |
| 3401 | if err != nil { |
| 3402 | ec.Error(ctx, err) |
| 3403 | return graphql.Null |
| 3404 | } |
| 3405 | if resTmp == nil { |
| 3406 | if !graphql.HasFieldError(ctx, fc) { |
| 3407 | ec.Errorf(ctx, "must not be null") |
| 3408 | } |
| 3409 | return graphql.Null |
| 3410 | } |
| 3411 | res := resTmp.(*model.Pipeline) |
| 3412 | fc.Result = res |
| 3413 | return ec.marshalNPipeline2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipeline(ctx, field.Selections, res) |
| 3414 | } |
| 3415 | |
| 3416 | func (ec *executionContext) fieldContext_Query_getPipeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3417 | fc = &graphql.FieldContext{ |
no test coverage detected