express-graphql icon indicating copy to clipboard operation
express-graphql copied to clipboard

Allow usage of formats other than JSON?

Open dancojocaru2000 opened this issue 6 years ago • 1 comments

Although "the GraphQL spec does not require it", there doesn't seem a way to use anything other than JSON with this. Is there any plan to allow a custom format to be used?

dancojocaru2000 avatar Aug 04 '19 13:08 dancojocaru2000

My project uses express-graphql and I require it to support export to xlsx, csv and pdf. It would be quite easy, if express-graphql provided a way to override or extend the sendResponse function. For now I have to override the express response object in middleware.

SamMaxwell avatar Dec 27 '19 13:12 SamMaxwell