We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looking at this test case:
graphql-relay-js/src/connection/__tests__/arrayconnection.js
Lines 172 to 196 in 7422cfe
describe('pagination', () => { it('respects first and after', () => { var c = connectionFromArray( letters, {first: 2, after: 'YXJyYXljb25uZWN0aW9uOjE='} ); return expect(c).to.deep.equal({ edges: [ { node: 'C', cursor: 'YXJyYXljb25uZWN0aW9uOjI=', }, { node: 'D', cursor: 'YXJyYXljb25uZWN0aW9uOjM=', }, ], pageInfo: { startCursor: 'YXJyYXljb25uZWN0aW9uOjI=', endCursor: 'YXJyYXljb25uZWN0aW9uOjM=', hasPreviousPage: false, hasNextPage: true, } }); });
Because there is also an A and a B - shouldn't hasPreviousPage be true? If not, then how do we know there is a previous page available??
A
B
hasPreviousPage
true
The text was updated successfully, but these errors were encountered:
Nevermind, found my answer here: https://facebook.github.io/relay/graphql/connections.htm#sec-Pagination-algorithm
Sorry, something went wrong.
No branches or pull requests
Looking at this test case:
graphql-relay-js/src/connection/__tests__/arrayconnection.js
Lines 172 to 196 in 7422cfe
Because there is also an
A
and aB
- shouldn'thasPreviousPage
betrue
? If not, then how do we know there is a previous page available??The text was updated successfully, but these errors were encountered: