is there anyway to perform Graphql not equal to query

Solved

is there anyway to perform Graphql not equal to query

pawanthalia
Shopify Partner
13 0 0

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 101

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 101

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