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