From 36d93a4fd743beb5b176147393c1dfd8be15e3f4 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Tue, 21 Feb 2023 16:45:10 -0500 Subject: [PATCH] update docs, remove comment line --- packages/plugin-dataloader/src/schema-builder.ts | 1 - website/pages/docs/plugins/dataloader.mdx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/plugin-dataloader/src/schema-builder.ts b/packages/plugin-dataloader/src/schema-builder.ts index 6246ce15a..26fabe7ec 100644 --- a/packages/plugin-dataloader/src/schema-builder.ts +++ b/packages/plugin-dataloader/src/schema-builder.ts @@ -161,7 +161,6 @@ schemaBuilderProto.loadableNode = function loadableNode< options, ); - // ref.implement(options); ref.implement({ ...options, isTypeOf: diff --git a/website/pages/docs/plugins/dataloader.mdx b/website/pages/docs/plugins/dataloader.mdx index 3248fff9d..5a04bb01c 100644 --- a/website/pages/docs/plugins/dataloader.mdx +++ b/website/pages/docs/plugins/dataloader.mdx @@ -320,7 +320,7 @@ const UserNode = builder.loadableNode('UserNode', { id: { resolve: (user) => user.id, }, - // For loadable objects we always need to include an isTypeOf check + // For loadable nodes, we need to include an isTypeOf check if the first arg is a string isTypeOf: (obj) => obj instanceof User, load: (ids: string[], context: ContextType) => context.loadUsersById(ids), fields: (t) => ({}),