(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)
| 816 | } |
| 817 | |
| 818 | func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) { |
| 819 | fc, err := ec.fieldContext_Bug_createdAt(ctx, field) |
| 820 | if err != nil { |
| 821 | return graphql.Null |
| 822 | } |
| 823 | ctx = graphql.WithFieldContext(ctx, fc) |
| 824 | defer func() { |
| 825 | if r := recover(); r != nil { |
| 826 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 827 | ret = graphql.Null |
| 828 | } |
| 829 | }() |
| 830 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 831 | ctx = rctx // use context from middleware stack in children |
| 832 | return obj.CreatedAt(), nil |
| 833 | }) |
| 834 | if err != nil { |
| 835 | ec.Error(ctx, err) |
| 836 | return graphql.Null |
| 837 | } |
| 838 | if resTmp == nil { |
| 839 | if !graphql.HasFieldError(ctx, fc) { |
| 840 | ec.Errorf(ctx, "must not be null") |
| 841 | } |
| 842 | return graphql.Null |
| 843 | } |
| 844 | res := resTmp.(time.Time) |
| 845 | fc.Result = res |
| 846 | return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) |
| 847 | } |
| 848 | |
| 849 | func (ec *executionContext) fieldContext_Bug_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 850 | fc = &graphql.FieldContext{ |
no test coverage detected