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.

How to filter blog articles by theirs content

lujbek
Tourist
10 0 0

Hi
I'm using Storefront API GraphQL to filter blog articles.

 

Below is an code snippet, I'm using query directive to filter articles by title and tag. 

lujbek_0-1704726811867.png

lujbek_1-1704727167666.png

 

The question is how can I filter blog articles by their content as well. 
E.g. Suppose that I have an article with title is "Title ABC" and its content is: "Article content". When I perform search with term = "content" it will return this item. If term = "ABC" it also returns this one as well

 

Noted: I've referred the documentation https://shopify.dev/docs/api/storefront/2024-01/objects/Blog, it looks like Shopify does not support filter by content.

 

I'm looking forward to hear your response soon

 

Thanks

Replies 0 (0)