I need to serve files from grapghql, is it possible?

DeChamp - Oct 22 '19 - - Dev Community

So the need is to allow files to be a payload from the grapghql server. The current setup is the server is running express which is responsible for auth and grapghql.

The team in charge is wanting to avoid modifying express to allow rest endpoints and lock it down to just the graphql server.

So since we don’t have an easy option to add a rest endpoint to serve the files (large PDFs), I feel as though grapghql should have a way to serve files via the web sockets.

Can anyone give me direction in this?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player