Solved

how to filter orders by tags graphql

hmjeh
Tourist
11 3 0

 

 

query { orders(first:30, query:" -node.tags[0]:'handdle'")
{ 
edges 
{ node 
{ tags 
} 
} 
}
 }

 

 

and i got

 

 

 

 

{
  "data": {
    "orders": {
      "edges": [
        {
          "node": {
            "tags": [
              "handdle"
            ]
          }
        },
        {
          "node": {
            "tags": []
          }
        },
        {
          "node": {
            "tags": [
              "handdle"
            ]
          }
        },
        {
          "node": {
            "tags": []
          }
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 32,
      "actualQueryCost": 6,
      "throttleStatus": {
        "maximumAvailable": 1000.0,
        "currentlyAvailable": 994,
        "restoreRate": 50.0
      }
    }
  }
}

 

 

 

 

 i expecting to get only order with out content "handdle"

but unfortunately

i got everting

Accepted Solution (1)

hmjeh
Tourist
11 3 0

This is an accepted solution.

i find out how to resolve this prublem 

i make mistake in my query

hear's how the query shold to bi 

 

 

 

query {
      orders(first:30, query:"-tag:'handdle'"){

 

View solution in original post

Reply 1 (1)

hmjeh
Tourist
11 3 0

This is an accepted solution.

i find out how to resolve this prublem 

i make mistake in my query

hear's how the query shold to bi 

 

 

 

query {
      orders(first:30, query:"-tag:'handdle'"){