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

Paging with Connections - Clarifications about cursors #26

Closed
DelattreAdixon opened this issue Oct 31, 2018 · 2 comments
Closed

Paging with Connections - Clarifications about cursors #26

DelattreAdixon opened this issue Oct 31, 2018 · 2 comments

Comments

@DelattreAdixon
Copy link

GraphQL.EntityFramework implementation for paging with Connection model seems to use cursor sequence like "0", "1", "2", ...

Assuming a pagination with 100 items and paging with 10 items per page
I would like to implement feature like "Go directly to page 7".

Is it safe and reliable to assume I can query directly with arguments (first:10, after: X) where X is computed mathematically ?

I'm aware this is a workaround and only possible because of the cursor sequence. It would not work Facebook approach (documentation about Connection Model, show examples with base64 string for cursor : https://graphql.github.io/learn/pagination/)

@SimonCropp
Copy link
Owner

@gbiellem thoughts?

@SimonCropp
Copy link
Owner

@DelattreAdixon i dont object to this approach. how about a PR?

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

2 participants