Open Cloverstone opened 3 years ago
Larvel / Lumen (and therefore APIGateway) have support for ->paginate(N)
, which turns query results into an object structure that looks something like this:
{
"total": 50,
"per_page": 15,
"current_page": 1,
"last_page": 4,
"first_page_url": "http://laravel.app?page=1",
"last_page_url": "http://laravel.app?page=4",
"next_page_url": "http://laravel.app?page=2",
"prev_page_url": null,
"path": "http://laravel.app",
"from": 1,
"to": 15,
"data":[
{
// Record...
},
{
// Record...
}
]
}
Whatever is added would ideally have support for this back-end native functionality.
More info: https://laravel.com/docs/8.x/pagination#paginating-query-builder-results
Both UI to configure as well as the management of the pagination - and Ideally integration with grapheneDataGrid