Opaque pagination cursor for the next page, or absent when the range is exhausted. Pass it back
verbatim as cursor on the next readExercises
call — do not parse or construct it.
Drive the loop on nextCursor, not on exercises.length: a page can come back with fewer
exercises than limit — even empty — while nextCursor is still present. Stop only when
nextCursor is absent.
Opaque pagination cursor for the next page, or absent when the range is exhausted. Pass it back verbatim as cursor on the next readExercises call — do not parse or construct it.
Drive the loop on
nextCursor, not onexercises.length: a page can come back with fewer exercises thanlimit— even empty — whilenextCursoris still present. Stop only whennextCursoris absent.