Getting products in a collection by tag

New Member
7 0 0



I'm building a custom app, and trying to build in some navigation. This is going to be, select a collection, choose a filter (based on tag) and then view products.


After some perusing of the documentation, I cannot see a way of returning products with a certain tag applied, from a specific collection.


I can see 'collectionByHandle', but this seems to provide no way of querying products by tag. I can see a way to query products by tag, although this isn't much use as I can't pass a collection handle filter. Is my only option to do this manually and join them up myself?

Shopify Staff
Shopify Staff
1041 140 167

Hey @SimpleWorxLtd,


When querying products within a collection, you're not able to use the query argument to filter products further. I believe you would need to manually connect them.

Notice; Out of office, replies will be delayed until my return. Thanks!