How to get orders filtered by  metafieds via shopify graphql?

Highlighted
New Member
1 0 0

I want to get orders filtered by metafieds via shopify graphql. 

Ex: I have a metafield with key='sync' and value = true. I want to get all order with metafiled key !='sync'

{
  orders(first: 10,reverse:true,query: "meta_field:sync") {
    edges {
      node {
        id
        name
        metafield(key: "sync", namespace: "global") {
          id
          key
        }
      }
    }
  }
}

 

0 Likes