Skip to content

Commit

Permalink
update readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Feb 23, 2023
1 parent 36d93a4 commit 8d5ac03
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/deno/packages/plugin-dataloader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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
31 changes: 29 additions & 2 deletions packages/deno/packages/plugin-dataloader/schema-builder.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/plugin-dataloader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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 8d5ac03

Please sign in to comment.