Skip to content

Commit 015d855

Browse files
committed
fix(core): Forward only upload args
1 parent 635258c commit 015d855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getUploadArgumentsNames(info: GraphQLResolveInfo): string[] {
1818
const args = typeFields[info.fieldName].args
1919
const uploadArgs = args.filter(arg => arg.type === GraphQLUpload)
2020

21-
return args.map(arg => arg.name)
21+
return uploadArgs.map(arg => arg.name)
2222
}
2323

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

0 commit comments

Comments
 (0)