torchbox/wagtail-grapple

It's not always clear the some results are paginated.

dopry opened this issue · 1 comments

When querying sites { pages {} } grapple enforces a hard limit on the number of responses returned. When you get a response there is not indication that there are more pages to be fetched or that there was a default limit applied. I feel like we should update these interfaces to have some indication of total count, etc.

For ref: https://graphql.org/learn/pagination/, even though it is aimed at cursor pagination. Something like

{
  pages {}
  pagesInfo {
    total: 123
    page: 1,
    hasNextPage: true,
    perPage: 20
  }
}
``