(ctx context.Context, field graphql.CollectedField, obj *model.Pipeline)
| 2635 | } |
| 2636 | |
| 2637 | func (ec *executionContext) _Pipeline_name(ctx context.Context, field graphql.CollectedField, obj *model.Pipeline) (ret graphql.Marshaler) { |
| 2638 | fc, err := ec.fieldContext_Pipeline_name(ctx, field) |
| 2639 | if err != nil { |
| 2640 | return graphql.Null |
| 2641 | } |
| 2642 | ctx = graphql.WithFieldContext(ctx, fc) |
| 2643 | defer func() { |
| 2644 | if r := recover(); r != nil { |
| 2645 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 2646 | ret = graphql.Null |
| 2647 | } |
| 2648 | }() |
| 2649 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 2650 | ctx = rctx // use context from middleware stack in children |
| 2651 | return obj.Name, nil |
| 2652 | }) |
| 2653 | if err != nil { |
| 2654 | ec.Error(ctx, err) |
| 2655 | return graphql.Null |
| 2656 | } |
| 2657 | if resTmp == nil { |
| 2658 | if !graphql.HasFieldError(ctx, fc) { |
| 2659 | ec.Errorf(ctx, "must not be null") |
| 2660 | } |
| 2661 | return graphql.Null |
| 2662 | } |
| 2663 | res := resTmp.(string) |
| 2664 | fc.Result = res |
| 2665 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 2666 | } |
| 2667 | |
| 2668 | func (ec *executionContext) fieldContext_Pipeline_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 2669 | fc = &graphql.FieldContext{ |
no test coverage detected