A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I would like to modify a query like:
{
"query": "query { order(id: \"gid://shopify/Order/12345\") { agreements(first: 10) { edges { node { id happenedAt sales(first: 30) { edges { node { actionType lineType quantity totalAmount { shopMoney { amount } } ... on ProductSale { lineItem { id name sku } } } } } } } } } }"
}
To return the destination country for the order as well. Any help appreciated.
Thanks!
Solved! Go to the solution
This is an accepted solution.
It was actually pretty easy. I just had to add shippingAddress { countryCodeV2 }.
This is an accepted solution.
It was actually pretty easy. I just had to add shippingAddress { countryCodeV2 }.
Great to hear you figured this out and thanks for coming back to post the solution!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog