When
hasMore is false, nextCursor is null and you’ve reached the last page.
Node.js SDK
Use the resource’s list method, such astapace.passes.list({ limit: 50, cursor }). Pass the returned nextCursor into the next call and stop when hasMore is false. The SDK has no automatic page iterator. See the SDK pagination example.