updateCustomer mutation is overwriting tags instead of adding tags

Solved
dylanpierce
Shopify Partner
134 2 41

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 

CleanShot 2021-02-03 at 17.21.34.png

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

 

Founder of Verdict - Anti-Fraud Apps for Shopify
  • Blockade - Easily block countries, IP addresses, VPNs
  • Real ID - Verify your customer's real IDs easily & securely
0 Likes
_JCC_
Shopify Staff
Shopify Staff
145 20 26

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

dylanpierce
Shopify Partner
134 2 41

You're the man @_JCC_ thank you!

Sorry for being dramatic I was pretty tired and frustrated when I made that first post.

Founder of Verdict - Anti-Fraud Apps for Shopify
  • Blockade - Easily block countries, IP addresses, VPNs
  • Real ID - Verify your customer's real IDs easily & securely
0 Likes
_JCC_
Shopify Staff
Shopify Staff
145 20 26

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

0 Likes