What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

is there anyway to perform Graphql not equal to query

Solved

is there anyway to perform Graphql not equal to query

pawanthalia
Shopify Partner
14 0 1

Hii all,

Is there any way to query products via graphql  with following statements 
Product title  is not equal to Test Title 

or

Product title does not contain Test Title 

Accepted Solution (1)

Luke_K
Shopify Staff
402 66 102

This is an accepted solution.

 Hey @pawanthalia 

It's possible to query the GraphQL Admin API via Product Title is not equal to using the following NOT operator taken from our Search Syntax.

{
  products(first: 100, query: "-title:'Test Title'") {
    edges {
      node {
        id
        title
      }
    }
  }
}

 For more information check out the (documentation here).

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 2 (2)

Luke_K
Shopify Staff
402 66 102

This is an accepted solution.

 Hey @pawanthalia 

It's possible to query the GraphQL Admin API via Product Title is not equal to using the following NOT operator taken from our Search Syntax.

{
  products(first: 100, query: "-title:'Test Title'") {
    edges {
      node {
        id
        title
      }
    }
  }
}

 For more information check out the (documentation here).

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
techticpooja
Shopify Partner
7 1 2

so helpful thank you so much