InterviewBuddy
All interview questions

Why use cursor pagination in a GraphQL connection?

Intermediate

Answer

A cursor marks a position in a stable ordering so clients can request the next slice of results.

Explanation

Use a deterministic tie-breaker and cap page sizes; cursors alone do not provide snapshot consistency.

Example

Request first: 20, then after: endCursor with the same filters.