(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)
| 660 | } |
| 661 | |
| 662 | func (ec *executionContext) _Bug_title(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) { |
| 663 | fc, err := ec.fieldContext_Bug_title(ctx, field) |
| 664 | if err != nil { |
| 665 | return graphql.Null |
| 666 | } |
| 667 | ctx = graphql.WithFieldContext(ctx, fc) |
| 668 | defer func() { |
| 669 | if r := recover(); r != nil { |
| 670 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 671 | ret = graphql.Null |
| 672 | } |
| 673 | }() |
| 674 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 675 | ctx = rctx // use context from middleware stack in children |
| 676 | return obj.Title(), nil |
| 677 | }) |
| 678 | if err != nil { |
| 679 | ec.Error(ctx, err) |
| 680 | return graphql.Null |
| 681 | } |
| 682 | if resTmp == nil { |
| 683 | if !graphql.HasFieldError(ctx, fc) { |
| 684 | ec.Errorf(ctx, "must not be null") |
| 685 | } |
| 686 | return graphql.Null |
| 687 | } |
| 688 | res := resTmp.(string) |
| 689 | fc.Result = res |
| 690 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 691 | } |
| 692 | |
| 693 | func (ec *executionContext) fieldContext_Bug_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 694 | fc = &graphql.FieldContext{ |
no test coverage detected