Skip to content

Commit bd4d8ae

Browse files
committed
better naming
1 parent ebf38c6 commit bd4d8ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const resolvers = {
3131
hello: (parent, { name }) => `Hello ${name || 'World'}!`,
3232
favoriteRepos: (parent, args, context, info) => {
3333
return Promise.all(
34-
favoriteRepos.map(repo =>
35-
github.delegate('query', 'repository', repo, context, info),
34+
favoriteRepos.map(args =>
35+
github.delegate('query', 'repository', args, context, info),
3636
),
3737
)
3838
},

example/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const resolvers = {
1616
hello: (parent, { name }) => `Hello ${name || 'World'}!`,
1717
favoriteRepos: (parent, args, context, info) => {
1818
return Promise.all(
19-
favoriteRepos.map(repo =>
20-
github.delegate('query', 'repository', repo, context, info),
19+
favoriteRepos.map(args =>
20+
github.delegate('query', 'repository', args, context, info),
2121
),
2222
)
2323
},

0 commit comments

Comments
 (0)