(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)
| 1164 | } |
| 1165 | |
| 1166 | func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) { |
| 1167 | fc, err := ec.fieldContext_Bug_operations(ctx, field) |
| 1168 | if err != nil { |
| 1169 | return graphql.Null |
| 1170 | } |
| 1171 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1172 | defer func() { |
| 1173 | if r := recover(); r != nil { |
| 1174 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1175 | ret = graphql.Null |
| 1176 | } |
| 1177 | }() |
| 1178 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 1179 | ctx = rctx // use context from middleware stack in children |
| 1180 | return ec.resolvers.Bug().Operations(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int)) |
| 1181 | }) |
| 1182 | if err != nil { |
| 1183 | ec.Error(ctx, err) |
| 1184 | return graphql.Null |
| 1185 | } |
| 1186 | if resTmp == nil { |
| 1187 | if !graphql.HasFieldError(ctx, fc) { |
| 1188 | ec.Errorf(ctx, "must not be null") |
| 1189 | } |
| 1190 | return graphql.Null |
| 1191 | } |
| 1192 | res := resTmp.(*models.OperationConnection) |
| 1193 | fc.Result = res |
| 1194 | return ec.marshalNOperationConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx, field.Selections, res) |
| 1195 | } |
| 1196 | |
| 1197 | func (ec *executionContext) fieldContext_Bug_operations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1198 | fc = &graphql.FieldContext{ |
no test coverage detected