-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use file buffer instead of writing to the filesystem to proxy multipart request to a graphql api #244
Comments
I have the same question. @timojokinen did you find solution? |
No, unfortunately not. |
I am facing the same issue and I use |
Hey @Sczlog, can you provide an example with memfs? |
Bump. I was using |
I have a nodejs express app that serves as a proxy between a client application and a graphql api. The graphql api implements the graphql-multipart-request-spec. I am using the graphql-request package to query it. The proxy application uses nestjs and multer for the upload.
According to graphql-request docs you can upload files like this
But that implies that the uploaded file has been saved to the file system. Is it possible to do the same thing using the buffer of the file?
I tried to turn the buffer to a ReadableStream like this:
But the graphql api returns the following error:
The text was updated successfully, but these errors were encountered: