Focusing on managing products, variants, and collections through the API.
Hi David,
To fetch products that have both the "Black" and "White" tags, you need to implement a more nuanced query strategy, as the direct AND operation for tags through a single query isn't natively supported by the API in the way filters are used in your example. One option would be to perform the initial query to fetch products with either tag, then filter the results in your application code to retain only those items that have both tags.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi there. Thank you for the answer.
While this works, I wouldn't really say it's optimal. Shopify should really add this to their backlog.
Kind regards.
David