Solved

updateCustomer mutation is overwriting tags instead of adding tags

dylanpierce
Shopify Partner
215 3 98

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 Real ID - Verify your customer's real IDs easily & securely with modern A.I.

Want to see it in action? Check out our demo store.

Accepted Solution (1)

_JCC_
Shopify Staff
200 27 55

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

View solution in original post

Replies 4 (4)

_JCC_
Shopify Staff
200 27 55

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
215 3 98

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 Real ID - Verify your customer's real IDs easily & securely with modern A.I.

Want to see it in action? Check out our demo store.

_JCC_
Shopify Staff
200 27 55

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

XBRANDONX
Shopify Partner
23 0 4

Read the data first, add to it, then write it back