Skip to content
Pebellslearn by building

The course

GraphQL

Learn how GraphQL describes an API as a typed graph and how clients read, change and watch that data. You will write queries, mutations and subscriptions and design a schema, all on one small bookshop API.

Ready to learn

Your path through the ideas

Inside the course

6 modules · 21 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02Introduction to GraphQL4 lessons

Meet GraphQL as a way of asking an API for exactly the shape of data you need, see the problems it fixes, and learn where it lives in a frontend and a backend.

  1. 01What is GraphQL12 min
  2. 02Problems GraphQL Solves12 min
  3. 03Thinking in Graphs12 min
  4. 04GraphQL on Frontend and Backend14 min
03GraphQL Queries5 lessons

Write queries that pick fields, pass arguments and variables, rename results with aliases, reuse selections with fragments and switch parts on or off with directives.

  1. 01Queries and Fields12 min
  2. 02Arguments and Variables14 min
  3. 03Aliases10 min
  4. 04Fragments14 min
  5. 05Directives12 min
04Mutations3 lessons

Write mutations that create and update data, understand why several mutation fields run one after another, and name your operations so logs make sense.

  1. 01What are Mutations12 min
  2. 02Multiple Fields in a Mutation12 min
  3. 03Operation Names10 min
05Subscriptions and Data Over Time4 lessons

Use subscriptions to hear about events, compare them with live queries, and let @defer and @stream deliver a slow response in pieces.

  1. 01What are Subscriptions12 min
  2. 02Event-Based Subscriptions14 min
  3. 03Live Queries12 min
  4. 04@defer and @stream14 min
06The Schema5 lessons

Build the bookshop schema from the type system up: scalars and enums, objects and lists, then interfaces and unions for fields that can return more than one kind of thing.

  1. 01The Type System12 min
  2. 02Scalars and Enums12 min
  3. 03Objects, Lists and Non-Null14 min
  4. 04Interfaces14 min
  5. 05Unions14 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.