"Cost per item" should be a property on a variant, not the inventory object. Please explain

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
          }
        }
      }
    }
  }
}

Hi @amiddles ,

Cost per unit is part of both simple product and variant product. This is basically to decide profit margin. Please refer screenshot.

Same you will find on simple product. With this query you will get both simple and variant product.

No you cannot move to variant level you have to use inventory object for cost per unit.

Thanks…