Skip to content

Feat: Improve pagination info #39

Closed
@frankdugan3

Description

@frankdugan3

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
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions