-
Notifications
You must be signed in to change notification settings - Fork 139
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
make maxResultsSize and defaultResultSize optional #609
Comments
@oldwolf in this case would it be better to turn paging off for those models? https://doug-martin.github.io/nestjs-query/docs/graphql/paging#disabling-paging |
Yeah, i had same consideration before, but sometimes we need paging for listing page, while for dropdown selection or CSV export we want to disable paging, is there a way to kill two birds with one stone? |
@oldwolf there isn't a way to make a relation act in different ways based on the use case. You could add the same relation twice one version for paging the other where the paging is turned off, but that could be confusing. What is your suggestion on how to address this issue? |
i would suggest remain the default result size & max result size, while adding an option to override them, like noLimitSize: true |
Added the ability to set |
Thanks for your awesome package. Sometimes I have to set a large number to maxResultsSize & defaultResultSize for some models, like countries or currencies, to query all the data, this works but maybe there's better way to deal with?
Also there is inconsistent naming for maxResultSize, below is quoted from documentation
The text was updated successfully, but these errors were encountered: