GraphQL - NOT Query can not work with Field search?

Hi

From shopify graphql Document, I found this: “the minus sign must precede the field, value, or subquery e.g. -field:value -value -(subquery).”

But this not working:

I am trying to get products which does not include ‘Apparel’ in product tags, but it doesn’t working well with the query variable above

Could someone help with the query syntax?

Thanks a lot

Barrick

Hi @MR_DEVELOPERS

The syntax that you’ll want to use is “-tag:Apparel” rather than “-tags:Apperal” :slightly_smiling_face:

There’s a good walkthrough with a video tutorial that has a few examples here: https://www.shopify.ca/partners/blog/query-argument-graphql