GraphQL: getting started

Lesson 08 · 11 min

Pagination: cursors and Connection

edges, node, pageInfo — verbose, but the feed doesn't break.

11 minLesson 8 of 9Practice includedAsk AI on any point

A list in GraphQL isn't returned whole. The most common format is Connection: the field takes first and after, and returns edges (each with node and cursor) and pageInfo with hasNextPage and endCursor. The client takes endCursor and passes it as after in the next request. A cursor is an opaque string: the client doesn't parse it, only sends it back.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.