sirsavary / fastify-graphql

Run an Apollo Server on Fastify.
https://www.npmjs.com/package/fastify-graphql
MIT License
24 stars 5 forks source link

Set reply.sent to true when bypassing Fastify's response layer #13

Closed jeromemacias closed 6 years ago

jeromemacias commented 6 years ago

To avoid following Fastify error:

Promise may not be fulfilled with 'undefined' when statusCode is not 204
Error: Promise may not be fulfilled with 'undefined' when statusCode is not 204

Fix https://github.com/sirsavary/fastify-graphql/issues/12

sirsavary commented 6 years ago

Apologies for taking forever to merge this! Need to get in the habit of remembering I maintain an OSS project ;)

jeromemacias commented 6 years ago

No worries, thanks !