Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Products filtering by collection ids and tags using GraphQL

Shopify Partner
1 0 0


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)