This is a template for Graphql server using graphql-yoga and prisma
$ yarn install
$ cp .env.example .env
# Please edit database info(user, pw, host, database name...etc) in .env file
$ yarn prisma migrate deploy --preview-feature
$ yarn prisma generate
$ yarn start
Access to http://localhost:4000
- Update datamodels in
schema.prisma
- Create migration files and apply it to database
$ yarn prisma migrate dev --preview-feature
- Regenerate prisma client
$ yarn prisma generate
Please edit src/schema.graphql
$ yarn generate
Please check .codegen/types.ts