A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
This is a bit of a frustrating one. The mutation updateCustomer actually overwrites existing tags instead of adding to them.
The documentation should really be updated, or better yet the mutation should actually add tags instead of replacing them outright like it implies it does. Which is a lie.
updateCustomer Mutation Documentation
I understand a code change can take some time but at least consider updating the documentation. Partners could (and probably) are overwriting each others tags which could in turn affect app functionality that relies on tags.
But to answer my own question - tagsAdd will not interfere with other preexisting tags and actually adds instead of replaces.
Please Shopify hear my cry. Us devs need accurate words for operations at the very least! Save us from harming each other and ourselves!
tagsAdd Mutation Documentation
Want to see it in action? Check out our demo store.
Solved! Go to the solution
This is an accepted solution.
Hey @dylanpierce ,
Thanks for the feedback! The docs have been updated to be more clear about the impact, and include a reference link to tagsAdd.
Regards,
John
John C | Developer 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
This is an accepted solution.
Hey @dylanpierce ,
Thanks for the feedback! The docs have been updated to be more clear about the impact, and include a reference link to tagsAdd.
Regards,
John
John C | Developer 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
You're the man @_JCC_ thank you!
Sorry for being dramatic 😅 I was pretty tired and frustrated when I made that first post.
Want to see it in action? Check out our demo store.
Hey @dylanpierce ,
No need to apologize. All feedback is important, and it's great that with your help that we've been able to improve something for all our partners and merchants.
Regards,
John
John C | Developer 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
Read the data first, add to it, then write it back