(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)
| 1034 | } |
| 1035 | |
| 1036 | func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) { |
| 1037 | fc, err := ec.fieldContext_Bug_comments(ctx, field) |
| 1038 | if err != nil { |
| 1039 | return graphql.Null |
| 1040 | } |
| 1041 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1042 | defer func() { |
| 1043 | if r := recover(); r != nil { |
| 1044 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1045 | ret = graphql.Null |
| 1046 | } |
| 1047 | }() |
| 1048 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 1049 | ctx = rctx // use context from middleware stack in children |
| 1050 | return ec.resolvers.Bug().Comments(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int)) |
| 1051 | }) |
| 1052 | if err != nil { |
| 1053 | ec.Error(ctx, err) |
| 1054 | return graphql.Null |
| 1055 | } |
| 1056 | if resTmp == nil { |
| 1057 | if !graphql.HasFieldError(ctx, fc) { |
| 1058 | ec.Errorf(ctx, "must not be null") |
| 1059 | } |
| 1060 | return graphql.Null |
| 1061 | } |
| 1062 | res := resTmp.(*models.BugCommentConnection) |
| 1063 | fc.Result = res |
| 1064 | return ec.marshalNBugCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentConnection(ctx, field.Selections, res) |
| 1065 | } |
| 1066 | |
| 1067 | func (ec *executionContext) fieldContext_Bug_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1068 | fc = &graphql.FieldContext{ |
no test coverage detected