typescript-graphql-server
typescript-graphql-server copied to clipboard
Retrofit templates to work with Graphback
This PR adds the necessary configurations for each template to work with Graphback.
Graphback generates your GraphQL schema, resolvers and database and provides a set of runtime libraries to connect to a database of your choice.
Why
These boilerplates are still using graphql-yoga
and Prisma 1 which are in maintenance mode.
Tasks
- Add a
.graphlrc
graphql-config to each template with graphback configuration - Replace
graphql-yoga
withapollo-server-express
for server setup - Add generated resolvers and schema
- Add data sources and runtime libraries (where applicable)
Verification
advanced
- Run
docker-compose up -d
to start MongoDB - Run
yarn
to install dependencies - Run
yarn start
. - Execute the mutations in
seed.graphql
from the playground
basic
:
- Run
yarn install
- Run
yarn start
advanced
:
- Run
yarn install
- Run
docker-compose up -d
- Run
yarn start
@kamilkisiela @ardatan we have started processing graphql-boilerplates to support graphql-cli. Codegen and other commands will be added as well