(ctx context.Context, field graphql.CollectedField, obj *model.Pipeline)
| 2767 | } |
| 2768 | |
| 2769 | func (ec *executionContext) _Pipeline_status(ctx context.Context, field graphql.CollectedField, obj *model.Pipeline) (ret graphql.Marshaler) { |
| 2770 | fc, err := ec.fieldContext_Pipeline_status(ctx, field) |
| 2771 | if err != nil { |
| 2772 | return graphql.Null |
| 2773 | } |
| 2774 | ctx = graphql.WithFieldContext(ctx, fc) |
| 2775 | defer func() { |
| 2776 | if r := recover(); r != nil { |
| 2777 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 2778 | ret = graphql.Null |
| 2779 | } |
| 2780 | }() |
| 2781 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 2782 | ctx = rctx // use context from middleware stack in children |
| 2783 | return obj.Status, nil |
| 2784 | }) |
| 2785 | if err != nil { |
| 2786 | ec.Error(ctx, err) |
| 2787 | return graphql.Null |
| 2788 | } |
| 2789 | if resTmp == nil { |
| 2790 | if !graphql.HasFieldError(ctx, fc) { |
| 2791 | ec.Errorf(ctx, "must not be null") |
| 2792 | } |
| 2793 | return graphql.Null |
| 2794 | } |
| 2795 | res := resTmp.(model.PipelineStatus) |
| 2796 | fc.Result = res |
| 2797 | return ec.marshalNPipelineStatus2githubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipelineStatus(ctx, field.Selections, res) |
| 2798 | } |
| 2799 | |
| 2800 | func (ec *executionContext) fieldContext_Pipeline_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 2801 | fc = &graphql.FieldContext{ |
no test coverage detected