What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Products filtering by collection ids and tags using GraphQL

Products filtering by collection ids and tags using GraphQL

vartem
Shopify Partner
1 0 0

Hello!

I have a task that requires to fetch unique products by collection ids and then filtered by tags.

The problem is that I can't figure out how to provide tags as a filter when a include products as relation from Collection. API says that "query" is not a valid argument.

If i trying to fetch all collections from products, it makes request costs more, and also I can't provide more than one tag per request.

Both solutions requires to do post-processing filtering.

What the best way to handle it?

Replies 0 (0)