Getting a list of filtered products

Highlighted
New Member
12 0 0

Hi.

 

Is there a way using the GraphQL to get a filtered match list of products ?

 

Like the one you can get in Admin/Products.

 

If you search there for "pink" you will get a list of all products that has a variant title that includes pink for example.

 

It seems to be searching on product title, variant title, sku, vendor, tags etc.

0 Likes
Highlighted
Shopify Partner
1433 171 262

You can definitely do that, but the filters are limited to a set of fields, as:

collection_type
publishable_status
published_status
title
updated_at

The syntax of the search query you can use in GraphQL filters is described here  https://shopify.dev/concepts/about-apis/search-syntax

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
New Member
12 0 0

This is not even close to what I need.

 

As I said I'm looking for something similar to the Admin/Products filtered search.

0 Likes
Highlighted
Shopify Partner
1433 171 262
“If you search there for "pink" you will get a list of all products that has a variant title that includes pink for example.”

Quite close if you ask me :)
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes