score:2

Accepted answer

actually it depends both on your backend setup and restclient you use...

see restclient example : https://github.com/marmelab/admin-on-rest/blob/49a616c93d1ee5ea0bfa3c5f7abea0bb29c8d01c/src/rest/simple.js (convertrestrequesttohttp)

it is possible to override pagination query like :

const { page, perpage } = params.pagination;
const { field, order } = params.sort;

let query = {
    sort: json.stringify([field, order]),
    filter: json.stringify(params.filter),
};
if (perpage > 0) {
    query.range = json.stringify([
           (page - 1) * perpage,
           page * perpage - 1,
    ]);
}

(of course paging query params depends on your backend, it is just a sample )

score:-1

i used perpage={-1} for referenceinput and it worked for me.

score:1

no, there is not. however, you may just pass a very large value or maybe -1. it's then up to your backend to handle it correctly


Related Query

More Query from same tag