Hi, there
The sku field is in the InventoryItem .you could refer to this
mutation UpdateProductVariantSKU {
productVariantUpdate(input: {
id: "gid://shopify/ProductVariant/xxxxxx",
inventoryItem: {
sku: "xxxxxxxxx"
}
}) {
productVariant {
id
sku
}
userErrors {
field
message
}
}
}
https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productVariantUpdate
