How to query Products by Description using GraphQL ?

Solved
Highlighted
Shopify Partner
13 1 0

Hey,

 

I want to query Product products that contain some word in the description, refer to this documentation we can't query based on the description. Is there any way(s) to do this?

 

I expect something like this:

products(description:*hello*) {
        edges {
          node {
            id
            title
        }
      }
}
it will give all the product that contains "hello" in their product description

Thank you in advance!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
502 98 90

This is an accepted solution.

Hey @aldoalprak 

 

As the docs mention, there is no way to query based on description. The description box is quite a large string to analyze and searching by keyword is best suited to title, sku, metafields, or tags if needed. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes