typescript-graphql-server icon indicating copy to clipboard operation
typescript-graphql-server copied to clipboard

Retrofit templates to work with Graphback

Open craicoverflow opened this issue 4 years ago • 1 comments

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 with apollo-server-express for server setup
  • Add generated resolvers and schema
  • Add data sources and runtime libraries (where applicable)

Verification

advanced

  1. Run docker-compose up -d to start MongoDB
  2. Run yarn to install dependencies
  3. Run yarn start.
  4. Execute the mutations in seed.graphql from the playground

basic:

  1. Run yarn install
  2. Run yarn start

advanced:

  1. Run yarn install
  2. Run docker-compose up -d
  3. Run yarn start

craicoverflow avatar Apr 03 '20 13:04 craicoverflow

@kamilkisiela @ardatan we have started processing graphql-boilerplates to support graphql-cli. Codegen and other commands will be added as well

wtrocki avatar Apr 03 '20 15:04 wtrocki