Closed ferrao closed 6 years ago
Are you using the paginate method to pass the total count?
Not at all @fknop, but just realised I should, please ignore this and thank you for this nice module that is now doing exactly what I want :)
No problem :)
I am getting some weird metadata for the query
https://localhost:8081/api/user?limit=1&page=2
on a collection of 3 elements:All those
null
values there just seem wrong to me. And If I setmeta.location='header'
its even worse, I get no headers whatsoever. Looking atext.js
I see:Considering
totalCount
always gets hereundefined
this condition always evaluates to false and hence no headers..Am I missing something, or is
hapi-pagination
broken? If that is the case, I am happy to work on fixing it.