My first attempt at GraphQL
Things I needed to figure out before really diving into GraphQL, such as, auth, n+1 problem, making database request, scalable folder structure, etc.
So I've put this project together to figure it out,
GraphQL is awesome!
git clone https://github.com/shammelburg/express-graphql-api.git
- cd express-graphql-api
- npm install
- npm start
- shammelburg/graphql-rxjs-angular
- This project was created to show that subscriptions work with
express-graphql
- This project was created to show that subscriptions work with
- GraphiQL => http://localhost:4000/graphql
- JSON database
- Mulitple defType / resolver files
- Authentication middleware with JWT
- Business layer auth check and Authorization
- DataLoader to solve N+1 problem
- Error handling
- Subscriptions with
graphql-ws
User data from https://www.mockaroo.com/
Learning material
- https://graphql.org/learn/
- https://jwt.io/
- Modularizing your GraphQL schema code
- GraphQL over WebSockets
YouTube
Repos