I have a paginated query like this:
const contacts = yield Database
.from('contacts')
.where(conditions)
.orderBy(sort, dir)
.paginate(page, limit)
response.jsonApi('Contact', contacts.data)
this will return some metadata like
total: 406,
currentPage: 1,
perPage: 10,
lastPage: 41
i would like to access it for ui pagination purposes but it is not being sent from the JsonApiView.
It there a way to do it?
I have a paginated query like this:
this will return some metadata like
i would like to access it for ui pagination purposes but it is not being sent from the JsonApiView.
It there a way to do it?