-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pagination details in the query endpoint responses #113
Comments
PouchDb doesn't support a total count with a filter applied. I can return a count of all records, without the filter. I could code something manually to iterate through all the pages to calculate a total, but that seems like a waste of resources. The rest is fine. |
Ok, but if you can name the variable I'll try to figure out a thing in the UI about the pagination. |
For
/db/query
and/ds/query
, the response is simply composed of anitems
array.It would be helpful to also return details of the pagination:
The
totalCount
should take into accout the filter of the query.For
limit
andskipped
, may there are other best practices for the terminology.The text was updated successfully, but these errors were encountered: