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

Setting the MaxItemCount #72

Open
shashankkr opened this issue Jul 29, 2022 · 2 comments
Open

Setting the MaxItemCount #72

shashankkr opened this issue Jul 29, 2022 · 2 comments

Comments

@shashankkr
Copy link

Hi @andrejpk ,
Is there a way to set the MaxItemCount option? I am trying to restrict a response based on the number of items returned in an array and not by its size.
More info here
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-pagination

@cmarshall10450
Copy link

Is there any update on how this can be achieved?

I'm trying to implement relay-style cursor pagination but can't limit the results because of the findManyByQuery() function calling fetchAll for the query. MaxItemCount doesn't affect the result in the end.

@andrejpk
Copy link
Owner

andrejpk commented Mar 3, 2023

That seems really useful and maybe not too hard. I don't think I can put much time into this soon so happy to take a PR if you'd like to take a shot at it. Otherwise I can look into it when I free up a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants