Pagination with Next & Previous

I need to set pagination with next and previous buttons. Display 1 record per page and have the next / previous buttons to reload the same page with next/previous item.

I don’t want to display the number of pages. Just Next / Previous.

Any idea if this is doable in a cell page ?

Thanks !

I managed with a graph ql where id is a parameter sent on click Next / Previous. Is not very efficient to query the db every single time but given the less number of records within the db it did the job.

Sound like this may be more of a UI problem that a paging data fetching one.

For example. Sounds like with 1 item per page this is a slider or a carousel UI pattern.

Then you could fetch many more items once and then use a UI widget to scroll through and display the data instead.