Solved
Forum Discussion
ddellsperger
2 years agoAdmin
I'm not sure what exceeds_total_count
is in this case, but you might be able to leverage that, if not you likely will have to check the size of data $entity.data.length
for whatever page size you're requesting.
If, for instance your page size is 100, you could put $entity.data.length >= 100
in your has next, and then your next url would have to be something like $url + "&offset=" + 100 * (snap.out.totalCount + 1)
since the next page is calculated before the output page is processed, so it will be one off. If on the other hand, you know how many pages you need specifically, you can set the has next to simply true
and then set the page limit in the snap settings.