How can I paginate in supabase/GraphQL?

How can I paginate in supabase/GraphQL?


0

When I have a query:

{
  postsCollection(first: 10) {
    pageInfo {
      hasNextPage,
      hasPreviousPage,
      startCursor,
      endCursor
    }
    edges {
      cursor
      node {
        id
        title
      }
    }
  }
}

I return only the next and previous cursors. I need to know how many pages there are in total. Furthermore, how can I navigate to an arbitrary page, for example page 3?

Share
Improve this question


Load 7 more related questions


Show fewer related questions

0

Reset to default



Leave a Reply

Your email address will not be published. Required fields are marked *