I'm using an API that returns only a limited number of results, say 100.
I'd like to repeat a query until the return result set is < 100
which would mean I've got the last result.
So it would go like this:
- Make query
- Is result set less than limit? If so, do again and append results.
- Once result set is less than limit, emit the final result.