Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi,
I'm trying to list collection products using the Storefront Graphql API, and some products are not being returned. Here is the query:
{ collection(handle: "wtf") { products(first: 10) { pageInfo { hasNextPage endCursor } nodes { handle title } } } }
When I run the query, there are two products returned from the API. The problem is that there are actually five products in the collection.
The one difference between the products that show up and the ones that don't is that the ones that don't show up were either imported via CSV, or duplicated from an imported product.
Can anyone help troubleshoot? Thanks.
I should've searched before posting, looks like this has been mentioned before: https://community.shopify.com/c/shopify-apis-and-sdks/storefront-api-is-returning-no-products-one-ho...