How can I update the UnitPriceMeasurement
object, using the GraphQL API?
The UnitPriceMeasurement
is is part of the ProductVariant
object, and can be queried without problem (see below).
However, we have found no mutation that allows for updating the `UnitPriceMeasurement`.
So, the big question is:
How can we update the UnitPriceMeasurement
object, using the GraphQL API?
querying the UnitPriceMeasurement
on the ProductVariant
query ($id: ID!) {
product(id: $id) {
id
variants(first: 10) {
nodes {
id
unitPriceMeasurement {
measuredType
quantityValue
quantityUnit
referenceValue
referenceUnit
}
}
}
}
}
{
"id": "gid://shopify/Product/8941097484501"
}