A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Can anyone actually provide an answer as to why the order_number field is not available when using GraphQL?
I know I can get the name field, but that is not the same thing at all as the name field can have prefixes.
So, why isn't this rather important field available in the GraphQL API?
Hi @csam thanks for responding.
There is no number field for Orders.
{
"errors": [
{
"message": "Field 'number' doesn't exist on type 'Order'",
"locations": [
{
"line": 6,
"column": 9
}
],
"path": [
"query",
"orders",
"edges",
"node",
"number"
],
"extensions": {
"code": "undefinedField",
"typeName": "Order",
"fieldName": "number"
}
}
]
}
I will continue to look into this
To learn more visit the Shopify Help Center or the Community Blog.
I came here for the same reason. Any feedback would be appreciated.