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?
Click to expand... (Highlight to read) mutation { productUpdate (input: { id: "gid://shopify/Product/xxxxx", metafields: [ { namespace: "somespace", key: "somekey", value: "469", type: "single_line_text_field", description: "" }, { namespace: "somespace", key: "somenewkey", value: "469", type: "single_line_text_field", description: "" } ] }) { product { metafields(first: 100) {edges { node { id namespace key value description type }} } }} }
mutation { productUpdate (input: { id: "gid://shopify/Product/xxxxx", metafields: [ { namespace: "somespace", key: "somekey", value: "469", type: "single_line_text_field", description: "" }, { namespace: "somespace", key: "somenewkey", value: "469", type: "single_line_text_field", description: "" }] }) { product { metafields(first: 100) {edges { node { id namespace key value description type }} } }}}
thanks,