shojik
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.
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!
shojik
3
I found it.
Open show filters under query here https://shopify.dev/docs/api/admin-graphql/2024-07/objects/Order , I can see the parameters I can use for query.
https://gyazo.com/3ca94654165380d955ca95861f6a846e
I wonder why “status” exists there. No status field in Order object https://shopify.dev/docs/api/admin-graphql/2024-07/objects/Order.
But I am almost clear now.