Visit the official GraphQL learn page at graphql.org/learn. Read the 'Start with the basics' sections: Introduction, Schemas and Types, and Queries.
Key takeaways:
- GraphQL is a query language for APIs with a type system.
- Define schema using SDL:
type Query { hero: Character } type Character { name: String! }.
- Queries request exact data:
{ hero { name } } returns { "data": { "hero": { "name": "R2-D2" } } }.
Take notes on scalars (String, Int), object types, lists [Episode!]!, non-null !, arguments human(id: ID!): Human.