endCursor parameter is missing in pageInfo in qraphql pagination

Highlighted
Tourist
8 0 1

I want save last cursor in database. endCursor is missing in pageinfo, Is there any alternative ?

There are only two parameters available. graphql Pagination 

        pageInfo {
          hasNextPage
        }

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
587 72 130

Hey @tahafarooqui,

 

There's no specific property for end cursor. In this case, you can save the cursor from the last object in the response when hasNextPage returns false.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes