Hi,
We have an issue we cannot figure out. Using GraphQL 2023-01. Now the lineItem on fulfillmentOrder.fulfillmentOrderLineItem has been deprecated.
So how can we get the variant id when it’s not there anymore, to match it to the corresponding variant on the order?
We are using this to handle Shopify locations.
Test query:
{
order(id: "gid://shopify/Order/4562942885934") {
fulfillmentOrders(first: 3, reverse:true) {
edges {
node {
id
status
requestStatus
lineItems(first: 3) {
edges {
node {
id
sku
productTitle
variantTitle
remainingQuantity
totalQuantity
}
}
}
fulfillments(first: 5) {
nodes {
name
status
fulfillmentOrders(first: 2) {
nodes {
assignedLocation {
location {id}
}
}
}
fulfillmentLineItems(first: 2) {
edges {
node {
quantity
lineItem {
title
}
}
}
}
}
}
requestStatus
fulfillAt
fulfillBy
fulfillmentHolds {
reason
reasonNotes
}
assignedLocation {
location {
id
name
}
}
}
}
}
}
}
The response:
{
"data": {
"order": {
"fulfillmentOrders": {
"edges": [
{
"node": {
"id": "gid://shopify/FulfillmentOrder/5575719321646",
"status": "OPEN",
"requestStatus": "UNSUBMITTED",
"lineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/FulfillmentOrderLineItem/11599907389486",
"sku": "545461My",
"productTitle": "12V charger plug Mylocation",
"variantTitle": "White",
"remainingQuantity": 5,
"totalQuantity": 5
}
}
]
},
"fulfillments": {
"nodes": []
},
"fulfillAt": "2023-01-21T08:00:00Z",
"fulfillBy": null,
"fulfillmentHolds": [],
"assignedLocation": {
"location": {
"id": "gid://shopify/Location/35634839598",
"name": "My location"
}
}
}
},
{
"node": {
"id": "gid://shopify/FulfillmentOrder/5575719288878",
"status": "OPEN",
"requestStatus": "UNSUBMITTED",
"lineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/FulfillmentOrderLineItem/11599907356718",
"sku": "545461T2",
"productTitle": "12V charger plug tmplocation",
"variantTitle": "White",
"remainingQuantity": 4,
"totalQuantity": 4
}
}
]
},
"fulfillments": {
"nodes": []
},
"fulfillAt": "2023-01-21T08:00:00Z",
"fulfillBy": null,
"fulfillmentHolds": [],
"assignedLocation": {
"location": {
"id": "gid://shopify/Location/60959162414",
"name": "TmpLocation"
}
}
}
}
]
}
}
},
"extensions": {
"cost": {
"requestedQueryCost": 261,
"actualQueryCost": 23,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 977,
"restoreRate": 50
}
}
}
}
So we get the two fulfillmentOrders (one for each location), but we have no clue which distinct variants is on each fulfillmentOrder to match it to the variants on the order. It returns sku and productTitle, not none of these are unique, and sku can also be blank.