Event
{% assign order = payload %}
{% capture mutation %}
mutation tagsAdd($id: ID!, $tags: [String!]!) {
tagsAdd(id: $id, tags: $tags) {
node {
id
}
userErrors {
field
message
}
}
}
{% endcapture %}
{% json variables %}
{
"id": "{{ order.admin_graphql_api_id }}",
"tags": "datajet-tag"
}
{% endjson %}
{% assign result = mutation | graphql: variables %}Last updated