App reviews, troubleshooting, and recommendations
I have a query that returns an array of products, I can't work out how to right a mutation that updates the seo props of each product in the array.
(this is how far I could get...)
mutation productUpdate($input: ProductInput!) {
productUpdate(input: $input) {
product {
id {
seo {
description: "Testing update description",
title: "Testing update title"
}
}
}
userErrors {
field
message
}
}
}
Hello @juleshaydn
You can use this query for product mutation of seo fileds
Query : -
mutation {
productUpdate(input: {id: "gid://shopify/Product/8124163522853",
variants: {price: 300.00},
seo: {description: "testing description",
title: "test123"}})
{product {
id
seo {
description
title
}
}
}
}
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024