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.
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:
https://github.com/19majkel94/type-graphql/issues/37
Closing as the example and docs for apollo-upload will be done along with the integration itself.
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.
Most helpful comment
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.