GraphQL productUpdate mutation does not create new metafields

Hi,

I have a productUpdate Mutation that used to work to create metafields in a product. It is currently not working when I set more than one metafield, however, when there is only one metafield it creates the metafield in. the product.

Is there any explanation?

Show More

mutation {

Show More

productUpdate (input: { id: “gid://shopify/Product/xxxxx”, metafields: [

Show More

{ namespace: “somespace”,

Show More

key: “somekey”,

Show More

value: “469”,

Show More

type: “single_line_text_field”,

Show More

description: “” },

Show More

{ namespace: “somespace”,

Show More

key: “somenewkey”,

Show More

value: “469”,

Show More

type: “single_line_text_field”,

Show More

description: “” }

Show More

] }) { product {

Show More

metafields(first: 100) {edges { node { id namespace key value description type }} } }}

Show More

}

thanks,