A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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.
Solved! Go to the solution
This is an accepted solution.
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.
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!
This is an accepted solution.
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.