From ea9baed6da9d42bbe3a418a73370d184051ad378 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Thu, 23 Feb 2023 12:06:17 -1000 Subject: [PATCH] fix rebase --- packages/plugin-dataloader/tests/example/schema/nodes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-dataloader/tests/example/schema/nodes.ts b/packages/plugin-dataloader/tests/example/schema/nodes.ts index e4ef9393b..aafbc4c92 100644 --- a/packages/plugin-dataloader/tests/example/schema/nodes.ts +++ b/packages/plugin-dataloader/tests/example/schema/nodes.ts @@ -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) => ({}), });