MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
952 stars 280 forks source link

Pagination #373

Closed NTXAggie closed 4 years ago

NTXAggie commented 4 years ago

When trying to use pagination in nodejs ("shopify-api-node": "^3.3.1") it throws a syntax error saying that .nextPageParameters does not exist on type IProducts[].

I followed exactly what is in the readme. I also confirmed that there is not any extra pagination data that comes back, it is just a simple array of results. Please help!

lpinca commented 4 years ago

Try to specify the API version in the constructor options. See https://github.com/MONEI/Shopify-api-node/issues/372 and https://github.com/MONEI/Shopify-api-node/issues/357.

NTXAggie commented 4 years ago

image

@lpinca It does not fix the typescript issue, but it does fix the pagination issue, thanks!

lpinca commented 4 years ago

Yes the TypeScript issue is a known issue and is being discussed here https://github.com/MONEI/Shopify-api-node/issues/288.