A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
When adding multiple tags in different languages, at most one tag is saved in languages other than english. However if the tags in other languages has english words combined, those tags are saved.
graphql query:
mutation tagsAdd($id: ID!, $tags: [String!]!) {
tagsAdd(id: $id, tags: $tags) {
node {
id
}
userErrors {
field
message
}
}
}
Graphql variables:
{
"id": "{order_id}",
"tags": [
"नेपाल",
"जापान",
"काठमाडौं"
]
}
In the above graphql mutation, only the first tag i.e. "नेपाल" is saved and rest of the tags are ignored (not saved).
But if you add english words or english word combined with other language, those tags are saved. For example: "Nepal", "नेपालnepal", "Tag", etc. are saved.
Hi @banmalakiran - this was definitely an odd issue, thanks for bringing this up to us. I was able to get in touch with our developers on your behalf and they have let me know that some other developers and merchants have related similar experiences as the one you've described, particularly when updating tags using non-Latin script characters through the TagsAdd mutation. They have isolated the issue and are currently working on a fix.
I can't guarantee an exact timeline in terms of when the fix will be completely implemented, however, I would recommend taking a look at our developer changelog, which will keep you updated on the state of our APIs and other recent changes/fixes like this one.
Thanks again for bringing this up, we'll get this fixed.
Cheers!
Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog