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
Jason Bosco
10/22/2022, 6:29 PM
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
Patrik Gmitter
10/22/2022, 6:31 PM
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 💪