I was expecting the cost per item field to be a part of the variant object as that’s what it’s related to, but it’s actually returned as apart of the inventory item object.
Can you please explain why the “Cost per Unit” is a part of the inventory item field, that seems like a very strange place for it considering it’s in the same place as the price field?
Is is possible to consider moving this field back to the variant object or at least returning the data at that level?
{
product(id: "gid://shopify/Product/$ID") {
id
variants(first: 1) {
nodes {
price
inventoryItem {
id
unitCost {
amount
}
}
}
}
}
}
