Pebellslearn by building
RoadmapsMatrixCoursesSandboxSign in

Course details

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 learn5 sections · 21 lessons
Start learning

Course curriculum

Introduction 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. What is GraphQL12 min
  2. Problems GraphQL Solves12 min
  3. Thinking in Graphs12 min
  4. GraphQL on Frontend and Backend14 min
GraphQL 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. Queries and Fields12 min
  2. Arguments and Variables14 min
  3. Aliases10 min
  4. Fragments14 min
  5. Directives12 min
Mutations3 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. What are Mutations12 min
  2. Multiple Fields in a Mutation12 min
  3. Operation Names10 min
Subscriptions 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. What are Subscriptions12 min
  2. Event-Based Subscriptions14 min
  3. Live Queries12 min
  4. @defer and @stream14 min
The 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. The Type System12 min
  2. Scalars and Enums12 min
  3. Objects, Lists and Non-Null14 min
  4. Interfaces14 min
  5. Unions14 min