metafieldsSet mutation doesn't work

ladygagaradio
Visitor
1 0 1

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"

ladygagaradio_0-1627747378257.png

 

It's a mutation just from documentation. What am I doing wrong? Trying to create a new metafield for a product variant

Replies 4 (4)

odeyan
Tourist
6 0 5

Yes!
I have a same problem. 
Guys could you help please?

Gift-o-the-Jab
Navigator
359 23 95

 It's the new supported types - needs json instead of json_string.

odeyan
Tourist
6 0 5
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!
hashcode_io
Shopify Partner
105 3 11

@odeyan  have you finger out the solution 

Shopify Team @ Conversios System
Please confirm its success with a like or marking it as a solution!
Google analytics 4
SST - Server-side tagging solution.
#martech#GA4 #GTM #ownGTM #SST #ServerSideTagging