Skip to content
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

More generic pagination options to avail reading all docs #173

Open
MohRaouf opened this issue Jun 9, 2022 · 1 comment
Open

More generic pagination options to avail reading all docs #173

MohRaouf opened this issue Jun 9, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@MohRaouf
Copy link

MohRaouf commented Jun 9, 2022

Is your feature request related to a problem? Please describe.
I get the paginated data with a query params, what if I want to get all docs from the same endpoint ?

Describe the solution you'd like
I want to make it more general so that when no query parameters provided it returns all docs,

Describe alternatives you've considered
unfortunately due to the default value of limit option = 10 I've to set is with random high number to get all docs

{ offset: offset | 0, limit:limit|1000 , sort: 'title' }

Additional context
please consider another option to return all docs

@aravindnc aravindnc self-assigned this Jul 4, 2022
@aravindnc
Copy link
Owner

@MohRaouf Thanks for the suggestion. I will add this as an option.

@aravindnc aravindnc added the enhancement New feature or request label Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants