Pagination setup
Options
![Gavril Loghin](https://us.v-cdn.net/6037124/user_avatars/2329389.jpg)
Gavril Loghin
Member ✭
I try to set up pagination for stored data in order to use it with my app. However, I followed the documentation but I think I am missing something.
When I test this in Run & Debug Mode works well.
https://xxx.xano.io/api:xxx/hubs?page=3
[xpg1.png][xpg2.png][xpg3.png][xpg4.png][xpg5.png]
When I run this in Swagger UI or a browser only the results from page 1 are returned (no matter what page is selected).
[xpg6.png][xpg7.png]
Any ideas of how can I fix this?
Thank you.
When I test this in Run & Debug Mode works well.
https://xxx.xano.io/api:xxx/hubs?page=3
[xpg1.png][xpg2.png][xpg3.png][xpg4.png][xpg5.png]
When I run this in Swagger UI or a browser only the results from page 1 are returned (no matter what page is selected).
[xpg6.png][xpg7.png]
Any ideas of how can I fix this?
Thank you.
Comments
-
do you mind if I ask you for some direction in order to solve this? Thank you.
-
your input type is an object, you won't be able to add this to the url. You will have to create your JSON object in a variable and use scalar inputs: https://docs.xano.com/working-with-data/functions/database-requests/query-all-records/external-query-manipulation/external-paging#alternative-to-json-input
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback