-
Couldn't load subscription status.
- Fork 10
Utils
Aknorw edited this page Apr 30, 2018
·
1 revision
For methods that accept pagination parameters, the pagination object should look like the following:
const paginationOpt = {
page,
perPage,
}| key | type | default | - |
|---|---|---|---|
| page | int | 1 | Must be > 0 |
| perPage | int | 50 | Must be > 0 and <= 100 |
For methods that accept sort parameters, the sort object should look like the following:
const sortOpt = {
by,
order,
}| key | type | default | - |
|---|---|---|---|
| by | string | - | Depends on the method |
| order | string | asc |
asc or desc
|