Closed ondrovic closed 3 years ago
The problem is in processUpload
; the await upload.file
is incorrect. It should just be await upload
.
Make sure that your graphqlUploadExpress
middleware and the GraphQLUpload
scalar are both coming from the same version of graphql-upload
, and that it's the latest version. Otherwise the scalar won't get the value it's expecting from the middleware.
I am having an issue when trying to upload multiple files using Apollo-Server-Express (2.19.0) and graphqlUploadExpress (11.0.0) if I add multiple files it seems to be missing the
file
from anything after the 1st object in the array.Any ideas as to what's causing the other items to fail?
typeDef
server.js
resolver
Also if I look at the files coming in prior to sending them to my processUpload they look correct