A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am trying to use the Shopify Products API to retrieve all of the products. However, because there are limits to the amount of records returned in a request (250 is the max), I have to use the 'nextPageURL' field to get the records from the next page. I am getting an error when doing this.
Note: I am using the Node Shopify API Client for these requests, and there are not authentication issues, as I am able to get the first page results just fine.
Here is how I try to get the next page results:
const test = await shopifyAPIClient.get({
path: "products",
query: {page_info: nextPageUrl}
});
nextPageURL has the nextPageURL returned from my first request.
When I do this, I get the following error:
When I use the actual URL that this request is using in my web browser, it retrieves the results correctly.
Am I doing something wrong with the Node API Client?
Did you ever figure this out? I'm trying to get pagination to work as well. Not much from the docs...