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

Feat: Improve pagination info #39

Open
frankdugan3 opened this issue Sep 14, 2022 · 0 comments
Open

Feat: Improve pagination info #39

frankdugan3 opened this issue Sep 14, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@frankdugan3
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Relay support #25 will add page_info to the relay version of the GraphQL schema. It would be ideal to have similar page info added to the non-relay pagination schemas.

Describe the solution you'd like

Basically, it would be nice to have all the pagination conveniences that AshPhoenix gives, such as next_page?, page_number, last_page, etc.

For example

{
  posts(limit: 10, offset: 2) {
    count
    has_next_page
    has_previous_page
    page_number
    last_page
    results {
      title
      body
    }
  }
}
@frankdugan3 frankdugan3 added the enhancement New feature or request label Sep 14, 2022
@zachdaniel zachdaniel added the good first issue Good for newcomers label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants