-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pagination: clarify behavior of first/last calls. #735
Comments
I agree with @leebyron's response in the original issue - Any interest in submitting a PR for this? |
I can submit PR for |
@BerndWessels this issue is about the semenatics of first/last calls and is largely resolved. Can you move your comment to #540? |
Is there a reason not to allow 0? This might be useful for a case where you initially show no comments on an object and after pressing "see more comments" you increase from 0 upwards. I would think we should update the spec and tests to non-negative. Thoughts? |
@kassens In current implementation @josephsavona what are you think? |
I trust @kassens ;-) My first thought was that |
👍 to |
Facebook's GraphQL servers throw an error when it receives either zero or a negative number. Having negative numbers throw an error is clearly the right call. I can go either way on zero; I very much like the current Facebook GraphQL server behavior since sending |
With 4eae620, I believe there's nothing left to do here. Thanks to everybody for contributing to the discussion! |
Copy of graphql/graphql-spec#104
I'm trying to implement pagination algorithm for my data and I don't know how to handle cases when
first
andlast
are negative.What is your opinion about this?
ref: https://facebook.github.io/relay/graphql/connections.htm#sec-Pagination-algorithm
I think that spec should answer that question.
The text was updated successfully, but these errors were encountered: