Advantages over REST
- Handles any type of error you will have correctly
- Doesn’t make the same call if it already has data for it
- Decide what data you want sent to the client
Helpers
Graphql tools - https://github.com/ardatan/graphql-tools
TypeGrapQL - https://github.com/MichalLytek/type-graphql
GraphQL Nexus - https://github.com/graphql-nexus/nexus
schema definition language (or SDL)
Gaphiql - ui for playing qith graphql endpoints
Schema Types
- Scalar: custom (primitive) type
- Object: object types
Primsa graphQL
https://github.com/prisma/prisma-examples/blob/latest/typescript/graphql-express-sdl-first/src/schema.ts
GraphQL IDE