Process Flow - Cursor-based pagination (startAfter, endBefore)
Start Query
Set Cursor: startAfter or endBefore
Fetch limited items
Return page of results
User requests next/prev page
Update cursor with last/first item
↩Back to Fetch limited items
The query starts with a cursor (startAfter or endBefore) to fetch a limited page of results. The cursor updates with each page to navigate forward or backward.