Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Custom pagination

Custom pagination

Vinisco
Visitor
1 0 1

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?

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

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