Hi @SCoccia ![]()
If your app has permissions to modify all 5 metafields on the product, you can use the productUpdate mutation to update them using their metafield.id:
mutation ($input: ProductInput!) {
productUpdate(input: $input) {
product {
id
metafields (first: 5, namespace:"foobar"){
nodes {
id
key
value
}
}
}
}
}
{
"input": {
"id":"gid://shopify/Product/123",
"metafields": [
{
"id": "gid://shopify/Metafield/456",
"value": "cat"
},
{
"id": "gid://shopify/Metafield/789",
"value": "dog"
}
]
}
}
Hope that helps!