Skip to content

Commit

Permalink
update docs, remove comment line
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser authored and hayes committed Feb 23, 2023
1 parent cdf6237 commit 36d93a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/plugin-dataloader/src/schema-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ schemaBuilderProto.loadableNode = function loadableNode<
options,
);

// ref.implement(options);
ref.implement({
...options,
isTypeOf:
Expand Down
2 changes: 1 addition & 1 deletion website/pages/docs/plugins/dataloader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({}),
Expand Down

0 comments on commit 36d93a4

Please sign in to comment.