ResourcePicker - InitialQuery - how to filter products not to show by product id?

Highlighted
Shopify Partner
1 0 0

I am able to query that shows a product with specific product id. Can't make it working other way around: not to show the product with specific id(s)

0 Likes
Shopify Staff
Shopify Staff
1489 67 220

initialQuery takes Shopify Search syntax. You can perform NOT calls with this syntax. That said, I don't think id works as a field you can query on Products, but it's worth a shot. Check out the docs linked above and more specifically the Modifier section.

 

Cheers.

 

 

0 Likes