Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Feb 23, 2023
1 parent 76d9acb commit ea9baed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-dataloader/tests/example/schema/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const ClassThingRef = builder.loadableNode(ClassThing, {
},
loaderOptions: { maxBatchSize: 20 },
// eslint-disable-next-line @typescript-eslint/require-await
load: async (keys, context: ContextType) => [new ClassThing()],
load: async (keys, context: ContextType) =>
keys.map((k) => new ClassThing(Number.parseInt(k, 10))),
fields: (t) => ({}),
});

Expand Down

0 comments on commit ea9baed

Please sign in to comment.