Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrofit templates to work with Graphback #596

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

craicoverflow
Copy link

@craicoverflow craicoverflow commented Apr 3, 2020

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

@wtrocki
Copy link

wtrocki commented Apr 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants