So I got this working just fine when I had a simple query of just pulling products with the titles. I was able to map the Next Page Token to my curser variable through the list views infinite scroll, but when I update the query to something more complicated like the below code which pulls more information which is nested deeper I can no longer pull a next page token for curser and instead it tries pulling a page number.
I have tried everything I can possible think of and at this point I'm thinking that it's just not possible in flutterflow.io
I have cursor set up as a json in api variables.
{
"query": "query getColl($id: ID!, $after: String) { collection(id: $id) { products(first: 20, after: $after) { pageInfo { hasNextPage endCursor } edges { node { id title description images(first: 1) { edges { node { url } } } variants(first: 1) { edges { node { price { amount currencyCode } } } } } } } } }",
"variables": {
"id": "<collectionId>",
"after": <cursor>
}
}
Api / Shopify Pagination (Is this just not possible in flutterflow.io)
Database & APIs
I've tried everything I know.
Yes
1