metafieldsSet mutation doesn’t work
metafieldsset docs
mutation metafieldsSet($metafields: [MetafieldsSetInput!]!) {
metafieldsSet(metafields: $metafields) {
metafields {
id
}
userErrors {
code
field
message
}
}
}
Error: Cannot query field “metafieldsSet” on type “Mutation”
It’s a mutation just from documentation. What am I doing wrong? Trying to create a new metafield for a product variant
odeyan
July 31, 2021, 4:10pm
2
Yes!
I have a same problem.
Guys could you help please?
It’s the new supported types - needs json instead of json_string.
odeyan
August 2, 2021, 7:43am
4
Hey man! Thank you for your fastest answer! Can you explain please what you mean exactly? It will be awesome if you show the mutation example. Thanks a lot!
system
September 2, 2022, 1:04pm
5
@odeyan have you finger out the solution