Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

How to filter products by title inside a collection

How to filter products by title inside a collection

junaid1112
Tourist
7 0 4

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/fi...

 

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.

Reply 1 (1)

sethwhite
Shopify Partner
1 0 0

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