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

@Query annotated repository function only returns the first 10 documents #1917

Closed
sothawo opened this issue Sep 2, 2021 · 0 comments · Fixed by #1919
Closed

@Query annotated repository function only returns the first 10 documents #1917

sothawo opened this issue Sep 2, 2021 · 0 comments · Fixed by #1919
Assignees
Labels
type: bug A general bug

Comments

@sothawo
Copy link
Collaborator

sothawo commented Sep 2, 2021

Repository methods defined with a @ Query annotation are sent having the default size value of 10 set in the request and so only get the first 10 documents.

This can be worked around currently by adding a Pageable.unpaged() parameter to the method and changing the return type to SearchPage<T>

@sothawo sothawo added the type: bug A general bug label Sep 2, 2021
@sothawo sothawo self-assigned this Sep 3, 2021
sothawo added a commit that referenced this issue Sep 3, 2021
@sothawo sothawo added this to the 4.3 M3 (2021.1.0) milestone Sep 3, 2021
sothawo added a commit that referenced this issue Sep 3, 2021
Original Pull Request #1919
Closes #1917

(cherry picked from commit e717586)
sothawo added a commit that referenced this issue Sep 3, 2021
Original Pull Request #1919
Closes #1917

(cherry picked from commit e717586)
(cherry picked from commit 2dd0a67)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant