This repository is an exercise based on https://www.howtographql.com/graphql-js/0-introduction/ tutorial. It's a GraphQL server built with graphql-yoga, database is managed by prisma
- GraphQL query, mutation, subscription examples
- Logging in and using tokens from context
- Paginated queries
- Filtered queries
In case some changes need to be made in the database
- update the model in
prisma/schema.prisma
- run
npx prisma migrate save --name "short-useful-migration-name" --experimental
with a custom name - apply the migration with
npx prisma migrate up --experimental