Hey everyone. I’m running the following query and was wondering what the difference was between the product_id available in ReturnLineItem vs LineItem:
query Returns($order_id: String!, $first: Int!, $after: String) {
returns(order_id: $order_id) {
data(first: $first, after: $after) {
edges {
node {
id
created_at
reason
status
line_items {
quantity
quantity_received
restock
product_id
line_item {
product {
id
legacy_id
}
sku
}
}
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Produces a node in my case with the following data:
"node": {
"id": "UmV0dXJuOjU3ODUzODI=",
"created_at": "2023-11-21T18:22:32",
"reason": "",
"status": "pending",
"line_items": [
{
"quantity": 1,
"quantity_received": 0,
"restock": 0,
"product_id": "UHJvZHVjdEluZm86NDIwOTU2NDg3",
"line_item": {
"product": {
"id": "UHJvZHVjdEluZm86MzExNDI0OTA2",
"legacy_id": 311424906
},
"sku": "P1"
}
}
]
}