Skip to content

Commit

Permalink
fix(core): Forward only upload args
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Jun 19, 2018
1 parent 635258c commit 015d855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getUploadArgumentsNames(info: GraphQLResolveInfo): string[] {
const args = typeFields[info.fieldName].args
const uploadArgs = args.filter(arg => arg.type === GraphQLUpload)

return args.map(arg => arg.name)
return uploadArgs.map(arg => arg.name)
}

export const upload = <output>(config: IConfig<output>): IMiddleware => {
Expand Down

0 comments on commit 015d855

Please sign in to comment.