What values can I set to the Graphql Orders query argument?

shojik
Shopify Partner
2 0 1

 I would like to get the specified Orders by graphql query
https://shopify.dev/api/admin-graphql/2022-07/queries/orders#argument-orders-query.

I know what keys I can specify for query, but what values I can set? Any documentation?

For example, what values can I specify for "status" parameter?
I looked at https://shopify.dev/api/admin-graphql/2022-07/objects/Order.
There is displayFinancialStatus and displayFulfillmentStatus, but no status field.

Reply 1 (1)

thall1961
Shopify Partner
1 0 0

https://shopify.dev/docs/api/usage/search-syntax

 

example query

 

 

query getProducts {
  orders(first:15, query:"name:#1001") {
    nodes {
      name
    }
  }
}

 

 

 

example using state

query=state:enabled OR state:disabled

hope that helps!