henvo / ra-jsonapi-client

JSON API data provider for react-admin.
MIT License
72 stars 70 forks source link

feat: nested total count #51

Closed Bramw2003 closed 1 year ago

Bramw2003 commented 2 years ago

In our pagination we have the 'total-count' for a list nested in a cursor object like

{
    data: {...},
    meta: {
        cursor: {
            total-count: 1234
        }
    }
}

This PR adds support for a nested total count and closes #40

Bramw2003 commented 2 years ago

Guessing this isn't the most optimised way to do this but suggestions are welcome!