How can i write a Mutation to ProductUpdate?

juleshaydn
New Member
4 0 0

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

0 Likes