-
Hi, I'm having two problems related to filters: Get all the unique filters
Is there a way to get all these possible filters without having to query all the products and parsing the array? Filter by Metafield
PS. I checked the Search and Discovery App (https://help.shopify.com/en/manual/online-store/search-and-discovery). But the docs doesn't make clear how you could use it in a hydrogen app. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, you can filter products by using a |
Beta Was this translation helpful? Give feedback.
-
Thanks @blittle :). But it's possible to query all possible filters? Like: query all distinct values for the metafield |
Beta Was this translation helpful? Give feedback.
Yes, you can filter products by using a
productFilter
forproductMetafield
: https://shopify.dev/docs/api/storefront/2023-07/queries/search#argument-search-productfilters