I am uploading products via graphQL and it’s all good apart from one thing - product Category metafields.
I have tried every which way, but I can’t seem to select a target gender or a colour, for example.
To clarify: I understand creating and updating custom metafields. It’s the product category metafields (within metaobjects, I believe) which Shopify created that I need help with.
Is this anywhere near? p.s. i am using the HTTP module in MAKE, which is working fine for creating and updating all other aspects of product and variant attributes.
{
"query":
"mutation {
metafieldsSet(metafields: [
{
namespace: \"shopify\",
key: \"color-pattern.color\",
ownerId: \"gid://shopify/Product/12345678910\",
type: \"shopify--color-pattern\",
value: \"#333333\"
}
]) {
metafields {
id
key
value
}
userErrors {
field
message
}
}
}"
}