Q26: What is the Relay Cursor Connections Specification?

Difficulty:IntermediateTopic:API Design

A standardized schema structure for paginating lists using cursors. It wraps list responses in edges and pageInfo metadata types.

Key components:

  • edges: List containing node data and its unique cursor string.
  • pageInfo: Flags (hasNextPage, hasPreviousPage) and boundary cursors (startCursor, endCursor).
Key Takeaways
  • Relay specification structures paginated queries into edges, node, and pageInfo components.
Knowledge Check

In the Relay Connection spec, which field on `pageInfo` tells the client if another page exists?