EscherLabs / Graphene

Graphene is a fully featured Workflow, Micro Application, and Content Management Platform with a robust web-based IDE (Integrated Development Environment). Graphene is the primary engine behind Binghamton University's myBinghamton portal.
https://docs.escherlabs.com/Graphene/
MIT License
29 stars 10 forks source link

Add support for resource pagination management #129

Open Cloverstone opened 3 years ago

Cloverstone commented 3 years ago

Both UI to configure as well as the management of the pagination - and Ideally integration with grapheneDataGrid

timcortesi commented 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