Product/variant cost price

So I’m wondering if there is any way at all to get the cost price against a product/variant at all? I’m not seeing anything against the Product object at all :thinking:

Hey @Luke,

The cost (unitCost) is available but it’s one level removed in product → variant → inventory item. You should be able to access it with something similar to:

product(id: $productId) {
    variants(first: 10) {
        nodes {
            id
            sku
            inventoryItem {
                id
                unitCost {
                    amount
                    currencyCode
                }
            }
        }
    }
}

Best,
Daniel