Runs / 2026-11-21_02-32-14 / Case trace
Did not complete
GraphQL customer resolver N+1 regression
Ground truthCustomer lookups inside the order map introduce N+1 database queries.
Six stages in order. Tests and validators both run after the patch applies. Outcome: Did not complete.
not reached
not recorded
The case stopped on an execution error
case_execution_error
RuntimeError: wrapper died
0 findings0 of 1 seeded bug matched0 false positives
No findings returned. The reviewer output was recorded as invalid, so there was nothing to score.
The case stopped on an execution error, so no stage recorded a result.
The case stopped on an execution error, so no stage recorded a result.
No structural validators ran. The case stopped on an execution error, so no stage recorded a result.
graphql_n_plus_one_001typescript, graphql, dataloader
Seeded change20 lines
--- a/src/resolvers/orders.ts +++ b/src/resolvers/orders.ts @@ -1,9 +1,13 @@ export const resolvers = { Query: { - orders: async (_parent: unknown, _args: unknown, { db, loaders }: Context) => { + orders: async (_parent: unknown, _args: unknown, { db }: Context) => { const orders = await db.orders.list(); - const customers = await loaders.customer.loadMany(orders.map(order => order.customerId)); - return orders.map((order, index) => ({ ...order, customer: customers[index] })); + return Promise.all( + orders.map(async order => ({ + ...order, + customer: await db.customers.findById(order.customerId), + })), + ); }, }, };
0.0/100
Scoring JSON17 lines
{
"scored_findings": [],
"breakdown": {
"concept_match": 0,
"file_match": 0,
"line_overlap": 0,
"severity_match": 0,
"fix_quality": 0,
"no_false_positives": 0,
"false_positive_penalty": 0,
"invalid_json_penalty": 0,
"total": 0
},
"failure_reasons": [
"case_execution_error: RuntimeError: wrapper died"
]
}parse status: invalid
The reviewer returned no output for this case.