A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
Is there any way to customize pagination using shopify's Graphql API?
I want a pagination that contains buttons with the number of pages.
For that I would need a "skip" and a "count" or something like that.
Is there a way to do this kind of pagination?
Hey @Vinisco - we don't offer a totally "out of the box" method to easily create the type of pagination experience you're describing here, but if you are looking to implement this internally for your app's logic or even on the merchant facing UI, it might be possible to build something like this. I'd recommend taking a look at our pagination documentation here for GraphQL.
We do offer a cursor implementation that allows you to iterate through pages based on a cursor value, which might help with the implementation you're describing here. I can't say for certain if you'd be able to exactly implement what you're thinking about here - but just wanted to share this as a starting point.
Hope this helps!
Al | Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog