getAllProducts() doesn't return all products

products
#1

Products.All() is not giving me all the products. It looks like there is a limitation set to the amount of products that I can get in my response, is that true?

0 Likes

#2

Hey Matt! It will likely give you back a paginated response including 100 products per page, so you should use the SDK to reach the next page: https://docs.moltin.com/basics/pagination. Please let me know if that does the trick!

0 Likes

#3

Hi Matt,

Thank you for the swift response. If I understand it correctly the max is 100 products per page?

Is there any way how I can change this, because i don’t want to include pagination in my project for this release.

0 Likes

#4

Hi @matt2

Not right now - pagination is the best way to go here. You could always do the pagination logic and add all products to one array you can use in your frontend :smile:

0 Likes