api

AI-generated summary

Issue: Fetching products from Shopify smart (automated) collections via Storefront API (GraphQL) returns no items, while manual (normal) collections work. Screenshots show the query used and the empty result for smart collections.

Context: “Smart collections” = automated collections built from rules; “manual collections” are curated by hand.

Latest guidance:

  • The posted GraphQL query structure is correct and should return products for both automated and manual collections.
  • Action: Verify the products in the smart collection are set to Active. Products in Draft status will not appear in the query results.

Notes:

  • A code snippet demonstrating a working collections → products query was provided.
  • Images/screenshots are central to illustrating the query and returned payload.

Outcome/Status: No confirmation yet that changing product status resolves the issue. The likely cause is product status (Draft vs Active), but the discussion remains open pending verification.

Hi there,## We are working on a mobile app for Shopify, we are using storefront API (GraphQL). And we are trying to fetch products from different collections, we are successful in fetching data from Normal Collections but are Unable to fetch from the smart collections. Below given is the body that we are trying to fetch.

What we are trying:

Result that we are getting:

Hi,
I think your query is actually correct! This query should be able to return products for both automated and manual collections.

{
  collections(first: 10) {
    edges {
      node {
        title
        products(first: 10) {
          edges {
            node {
              title
            }
          }
        }
      }
    }
  }
}

You should verify that the products in your smart collection are Active.

If your products are in draft status then they will not show up in the result of this query.