ra-jsonapi-client icon indicating copy to clipboard operation
ra-jsonapi-client copied to clipboard

Pagination total

Open thomaxxl opened this issue 4 years ago • 1 comments

Hi,

ra-jsonapi-client uses meta["total"] for pagination. Some libraries use meta["count"] for this. Is it possible to add a fallback to "count"? Or make this configurable? I can create a pull request if you wish.

thomaxxl avatar Jul 14 '21 08:07 thomaxxl

Hi @thomaxxl

Thanks for your input. As fas as I can see JSONAPI does not specify a standard on the "total/count" key name. In this case it would make sense to make this configurable.

Pull requests welcome.

henvo avatar Aug 01 '21 15:08 henvo