Opaque pagination cursor for the next page, or absent when the range is exhausted. Pass it back
verbatim as cursor on the next readSamples
call — do not parse or construct it.
Drive the loop on nextCursor, not on samples.length: a page can come back with fewer
samples 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 readSamples call — do not parse or construct it.
Drive the loop on
nextCursor, not onsamples.length: a page can come back with fewer samples thanlimit— even empty — whilenextCursoris still present. Stop only whennextCursoris absent.