(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)
| 1099 | } |
| 1100 | |
| 1101 | func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) { |
| 1102 | fc, err := ec.fieldContext_Bug_timeline(ctx, field) |
| 1103 | if err != nil { |
| 1104 | return graphql.Null |
| 1105 | } |
| 1106 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1107 | defer func() { |
| 1108 | if r := recover(); r != nil { |
| 1109 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1110 | ret = graphql.Null |
| 1111 | } |
| 1112 | }() |
| 1113 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 1114 | ctx = rctx // use context from middleware stack in children |
| 1115 | return ec.resolvers.Bug().Timeline(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int)) |
| 1116 | }) |
| 1117 | if err != nil { |
| 1118 | ec.Error(ctx, err) |
| 1119 | return graphql.Null |
| 1120 | } |
| 1121 | if resTmp == nil { |
| 1122 | if !graphql.HasFieldError(ctx, fc) { |
| 1123 | ec.Errorf(ctx, "must not be null") |
| 1124 | } |
| 1125 | return graphql.Null |
| 1126 | } |
| 1127 | res := resTmp.(*models.BugTimelineItemConnection) |
| 1128 | fc.Result = res |
| 1129 | return ec.marshalNBugTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemConnection(ctx, field.Selections, res) |
| 1130 | } |
| 1131 | |
| 1132 | func (ec *executionContext) fieldContext_Bug_timeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1133 | fc = &graphql.FieldContext{ |
no test coverage detected