enisdenjo / graphql-yoga-nestjs

Nest GraphQL GraphQL Yoga driver
https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs
25 stars 11 forks source link

chore: Update code-first example (revealing serious bugs) #78

Closed yusufkandemir closed 1 year ago

yusufkandemir commented 1 year ago

Upgrading the packages reveals the problems explained in #76:

I get headers back, but no response body. No Graphiql, no introspection.

So, this PR is kind of like a reproduction that will also eventually be useful as a code contribution 🙂

process.env.FASTIFY is for quick testing mostly while troubleshooting the issues. Fastify-Express examples can be separated, their start commands can be separated, a .env file can be set up to control this, or both applications can be launched simultaneously on different ports. It depends on your vision of examples.