You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I would like to say: nice job done! I have discovered your framework after exploring prisma and postgraphile. Yours is 10 times better!
Describe the issue
I have not found in the documentation how to implement client- to-server file upload API and server-to-client download API. I understand GraphQL allows this. How is it possible with TypeGraphQL. Example would be also good.
Are you able to make a PR that fix this?
Unlikely.
The text was updated successfully, but these errors were encountered:
avkonst
changed the title
Example with file upload / download mutation endpoint
Example with file upload / download endpoint API
Aug 21, 2018
server-to-client download API. I understand GraphQL allows this.
No, GraphQL always returns objects (JSONs), so you can't stream video file or sth. You need to fallback to good old HTTP and maybe REST API with express.js for things like images or files download (or use base64 😆).
For uploading files, there is an issue for this: #37
Here is a definitely terrible idea: you could base64 encode the file, and split it up into chunks, then send the chunks as a GraphQL paginated response.
First of all, I would like to say: nice job done! I have discovered your framework after exploring prisma and postgraphile. Yours is 10 times better!
Describe the issue
I have not found in the documentation how to implement client- to-server file upload API and server-to-client download API. I understand GraphQL allows this. How is it possible with TypeGraphQL. Example would be also good.
Are you able to make a PR that fix this?
Unlikely.
The text was updated successfully, but these errors were encountered: