This example uses Fastify to serve a graphql server and do server side rendering. It's very basic but showcases the different functionality that graphql-hooks
offers. This example is intended more for local development of the graphql-hooks
packages.
In the root of this repository run:
npm install
lerna run build
cd examples/fastify-ssr
npm run watch
To develop packages/
with this example locally, you'll need to run lerna run build
from the root to rebuild files after they've been changed.
curl https://codeload.github.com/nearform/graphql-hooks/tar.gz/master | tar -xz --strip=2 graphql-hooks-master/examples/fastify-ssr
cd fastify-ssr
Install it and run:
npm install
npm run watch