This document introduces GraphQL, highlighting its advantages over REST, including solutions to challenges such as over-fetching and under-fetching. It covers the fundamentals of GraphQL, including its schema, root types, and resolvers, and discusses its history and development. Additionally, it includes a demo using GitHub APIs and explores the application of GraphQL in a workshop centered on Pokémon.
> Rapid UIchanges, when we scale and iterate our product
> No documentation, API explorability and schema
> No enforcement of specification
> New endpoints for new features
Other limitations?
10.
What is GraphQL?
>Query language for the API
> Server runtime
> Specification
> Declarative data fetching
Schema
Scalar Types
Int Integer
FloatFloat
String String
Boolean Boolean
ID ID
Type Modifiers
String Nullable string
String! Required string
[String] List of strings
[String]! Required list of strings
[String!]! Required list of required strings
> Design or blueprint for our data.
> Schema has the type information, queries, mutations etc..
devhints.io/graphql