Storefront API 2024-01 Version Collection > ProductFilter[Tag] not working

I have products with tags 1,2,3 inside collection. I want to query the collection with product tag to get certain products with queried tag, but it returns every products in the collection. Example shown below.

graphql query:

  collection(id: "gid://shopify/Collection/{id}") {
    products(first: 5, filters: { tag: "product-tag-1"}) {
      nodes {
        title
      }
    }
  }

returns everything.

I want to filter the products

Hey @shop-easify !

Thanks for sharing that example. The first thing I would check here is that you have the filters enabled in the Search and Discovery app.

Currently, only the price and available filters are provided by default (mentioned here).

Hope that helps.

  • Kyle G.