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

Collection count greater than per_page, Query never returns null? #72

Open
ringofhealth opened this issue Dec 20, 2018 · 0 comments
Open

Comments

@ringofhealth
Copy link

so right now I have 2 entry in my collection and in my controller index code i have the following
` {query, rummage} =
Post
|> Rummage.Ecto.rummage(params["rummage"])

posts = Repo.all(query)`

the issue is that when I run

http://localhost:4000/api/blogs/2/posts?rummage[paginate][page]=10

which says goto page 10, it is still return the first 2 entries? Shouldnt it return 0 return for anything outside of page 1.

This should not be the correct behavior, especially when using infinite scroll that depends on paginating the data set. when you scroll the bottom, it keeps return the same 2 result over and over end with no end.

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

1 participant