updateCustomer mutation is overwriting tags instead of adding tags

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

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

1 Like

You’re the man @_JCC thank you!

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

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

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