Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there,
Anyone knows how we could filter a list of Products from a specific Collection ID and an array of [tags] with the GraphQL Storefront API ?
I looked into the documentation and the only way to filter products would be with the Products query but it accept only a set of Product IDs and a set of Tags, there is no way to add a Collection ID arguments to the query params.
The other way is with the Collection query which can return a list of available products but again here we can't filter products based on a set of Tags.
Thanks!
Hey @davebeauchemin , did you ever find a solution? I'm running into the same thing now.
Hey @rpbiwer I find a way to achieve this (but not the best in my opinion) by syncing products with my custom application. I'm using KeystoneJS for the backend so I created a Product type, Collection type and Tag type. Then I configured the Product Type to contain the Product ID from Shopify and a relationship with Collection and Tag from Keystone. Then I am filtering out my own database and once I get all available products for the specific Collection and Tag I'm making a query to Shopify to get all details related to the available products.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024