Filtering via GraphQl not showing all products

Topic summary

A GraphQL query filtering products by collection and tag suddenly stopped returning complete results, showing only 1 out of 10 products despite correct configuration.

Key Details:

  • Products were verified to be in the correct sales channel with proper tags
  • The “Search & Discovery” app was installed; disabling it didn’t resolve the issue
  • Query structure included standard pagination parameters (first: 100) and tag filters

Resolution:

  • The issue resolved itself without intervention
  • Root cause remains unclear, possibly related to Shopify internal cache
  • User confirmed testing was done in Shopify’s GraphQL app, ruling out client-side caching problems

The problem appears to have been a temporary platform-side issue rather than a code or configuration error.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Hi,

We started having issues couple days ago with a graphql query for retrieving products from collection, with a filter for tag. Worked properly before.

It doesnt return all products, but just one of 10. I checked 5 times that products are in correct sales channel, and tagged correctly. Products are identical, except title, handle, price, images, description.

On top of this we have “Search & Discovery” app installed, so we can filter properly. When it’s turned off, it returns all shop products.

Could this be a bug or something else is needed (like “search and discovery” app) ? Any tips ?

query ($handle: String, $tag: String) {
  collection(handle: $handle) {
    title
    handle
    products(first: 100, filters: {tag: $tag}) {
      edges {
        node {
          handle
          title
        }
      }
      pageInfo {
        hasNextPage
        endCursor
        hasPreviousPage
        startCursor
      }
    }
  }
}

Thanks,
Stefan

This has been solved by itself. Im not sure why yet, seems like some shopify internal cache. It’s not on our side, I made sure I was testing inside shopify graphql app too.