Graphql pagination

Graphql pagination


0

How to create pagination in supabase with graphql. When I have query:

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

I return olny coursor next and previus and I don’t know how many page is in pagination and next whan I want go to eq third page, how to doing this ?

Share
Improve this question


Load 4 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 *