graphql-upload
Middleware and an Upload scalar to add support for GraphQL multipart
... or graphqlUploadExpress just before GraphQL middleware. Alternatively, use the function processRequest to create custom middleware. The process must have both read and write access to the directory identified by os.tmpdir(). The device requires sufficient disk space to buffer the expected number of concurrent upload requests. Promisify and await file upload streams in resolvers or the server will send a response to the client before uploads are complete, causing a disconnect.