(ctx context.Context, field graphql.CollectedField, obj *model.PipelineExecution)
| 2860 | } |
| 2861 | |
| 2862 | func (ec *executionContext) _PipelineExecution_id(ctx context.Context, field graphql.CollectedField, obj *model.PipelineExecution) (ret graphql.Marshaler) { |
| 2863 | fc, err := ec.fieldContext_PipelineExecution_id(ctx, field) |
| 2864 | if err != nil { |
| 2865 | return graphql.Null |
| 2866 | } |
| 2867 | ctx = graphql.WithFieldContext(ctx, fc) |
| 2868 | defer func() { |
| 2869 | if r := recover(); r != nil { |
| 2870 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 2871 | ret = graphql.Null |
| 2872 | } |
| 2873 | }() |
| 2874 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 2875 | ctx = rctx // use context from middleware stack in children |
| 2876 | return obj.ID, nil |
| 2877 | }) |
| 2878 | if err != nil { |
| 2879 | ec.Error(ctx, err) |
| 2880 | return graphql.Null |
| 2881 | } |
| 2882 | if resTmp == nil { |
| 2883 | if !graphql.HasFieldError(ctx, fc) { |
| 2884 | ec.Errorf(ctx, "must not be null") |
| 2885 | } |
| 2886 | return graphql.Null |
| 2887 | } |
| 2888 | res := resTmp.(string) |
| 2889 | fc.Result = res |
| 2890 | return ec.marshalNID2string(ctx, field.Selections, res) |
| 2891 | } |
| 2892 | |
| 2893 | func (ec *executionContext) fieldContext_PipelineExecution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 2894 | fc = &graphql.FieldContext{ |
no test coverage detected