Skip to content

Commit

Permalink
Add comment about omitted resolver argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Feb 26, 2018
1 parent 2b7ef23 commit 65448c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemaGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function attachDirectiveResolvers(
const originalResolver = field.resolve || defaultFieldResolver;
const directiveArgs = this.args;
field.resolve = (...args: any[]) => {
const [source, , context, info] = args;
const [source, /* original args */, context, info] = args;
return resolver(
async () => originalResolver.apply(field, args),
source,
Expand Down

0 comments on commit 65448c9

Please sign in to comment.