Hello,
I’m having an issue with my graphQL query:
query {
order(id: "gid://shopify/Order/{order_id}") {
fulfillmentOrders(first:10){
edges{
node{
id
assignedLocation{
name
}
lineItems(first:50){
edges{
node{
id
sku
totalQuantity
}
}
}
}
}
}
fulfillments(first: 10) {
id
location{
name
}
fulfillmentLineItems(first: 100){
edges{
node{
lineItem{
sku
quantity
}
}
}
}
}
}
}
where {order_id} is replaced with the string of numbers for the given order.
but for an order with a pending fulfillment, I am not getting any data from this query for the fulfillmentOrders part, I am only getting the fulfilled portion returned through fulfillments.
Can anyone help understand why?
Here is the response from the given order:
{
"data": {
"order": {
"fulfillmentOrders": {
"edges": []
},
"fulfillments": [
{
"id": "gid://shopify/Fulfillment/{fulfillment_id}",
"location": {
"name": "{location_name}"
},
"fulfillmentLineItems": {
"edges": [
{
"node": {
"lineItem": {
"sku": "{sku}",
"quantity": 1
}
}
}
]
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 747,
"actualQueryCost": 9,
"throttleStatus": {
"maximumAvailable": 10000,
"currentlyAvailable": 9932,
"restoreRate": 500
}
}
}
}
