moltin / gatsby-source-moltin

🚀 Gatsby source plugin for building Elastic Path Commerce Cloud powered eCommerce websites
https://www.gatsbyjs.org/packages/@moltin/gatsby-source-moltin
MIT License
21 stars 4 forks source link

What if products more than 100? #18

Closed goodok21 closed 5 years ago

goodok21 commented 5 years ago

I have 5000+ products in Moltin and how can I fetch all of this to generate pages via gatsby-node.js?

Tried:

it's doesn't work, I always see 100 products

ynnoj commented 5 years ago

@goodok21

By default, page lengths are set to 100. You can adjust this setting globally for your project via the settings endpoint or override on any single call. There is a maximum page length of 100 for any paginated call.

There is a hard limit of 100 for any paginated call. You'll need to paginate requests accordingly using the skip and limit inputs in your query.

https://docs.moltin.com/api/basics/pagination

ynnoj commented 5 years ago

Closing. Please reopen if you still need guidance with this 😄

notrab commented 5 years ago

@goodok21 If you upgrade to the latest version you'll get more than 100 products now 😄