How to filter products by title inside a collection

Topic summary

Issue: A custom Storefront using the Shopify Storefront API needs to filter collection products by vendor and title. While vendor/metafield filters work, the ProductFilter input for collection queries does not include the title field.

API limitation: The referenced ProductFilter (Storefront API 2022-04) lists supported filters, and title is absent, preventing title-based filtering within a collection scope.

Request: An example GraphQL/code snippet to filter products by title when products are inside a specific collection.

Current status: No solution or workaround was provided in the thread. Another participant confirms the limitation and seeks an answer as well. Discussion remains open with an unresolved question on how to filter by title in-collection.

Summarized with AI on January 1. AI used: gpt-5.

We have implemented custom storefront and using storefront API to list down the products. We needed to filter the products by 2 metafields, vendor name and the title. We followed method to filter the products.

https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/products-collections/filter-products

But now the issue is in this approach we are unable to filter products by title. Because filter in a collection provides only following filters which doesn’t include the title attribute.

https://shopify.dev/docs/api/storefront/2022-04/input-objects/ProductFilter

Please write an example code to filter the products by title when the products are inside the collection.

2 Likes

Also looking for an answer to this. Seems odd that we can query by everything but title in a given collection