Hi everyone! Is there any way to check if there is...
# community-help
p
Hi everyone! Is there any way to check if there is next page when paginating? Or only one way is to request next page for example with limit 1? Thank you!
1
j
There is a field called found in the response which is the total number of results for that query. You can use that and the per_page value you set in the query to get total number of pages.
p
Aha! great to know, thank you for fast response! Im working with TS second day yet, but really love it! Especially in comparison with ES 💪
🙌 1