/api
contains renga Apollo Server. It requires
ENGINE_API_KEY=XXX
that sould be provided as environment variable
It allows to publish the schema graphl by using
cd api
npx apollo service:push --endpoint=http://localhost:4000/api --tag YOUR-TAG
Then using Apollo GraphQL VSC extension you'll be able to write you queries in a very safe way.
npm run seed
seed the database with fixtures
Should use import logging from './logging
Should be provided REACT_APP_API_URL
, APOLLO_KEY
npm run generate
run codegen against http://localhost:4000/api
and parse all *.tsx
files to generate hooks of your queries.