# Update tags in order

**URL:** https://community.shiphero.com/t/update-tags-in-order/2693
**Category:** GraphQL API
**Created:** [November 20, 2023, 5:02pm UTC](https://community.shiphero.com/t/update-tags-in-order/2693 "2023-11-20T17:02:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mendyw](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mendyw](https://community.shiphero.com/u/mendyw)
#### Post date: [November 20, 2023, 5:02pm UTC](https://community.shiphero.com/t/update-tags-in-order/2693/1 "2023-11-20T17:02:12Z")

</div>

When using the order\_update mutation, and adding a new tag, the UI shows that all the old tags were deleted and added as new tags. Is there any way to add a new tag, without removing the old tags and without the UI showing that the old tags were removed and added again?

---

<div class="post-metadata">

### Author: ![mendyw](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mendyw](https://community.shiphero.com/u/mendyw)
#### Post date: [November 20, 2023, 6:03pm UTC](https://community.shiphero.com/t/update-tags-in-order/2693/2 "2023-11-20T18:03:41Z")

</div>

I noticed that the in orders query the tags are in one string split by a comma, but in the individual order query the tag is separated correctly in an array.  
If this were to be fixed, it would cause a bug in the code i had already written, but this was pretty confusing.

---

<div class="post-metadata">

### Author: ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)
#### Post date: [November 21, 2023, 12:51pm UTC](https://community.shiphero.com/t/update-tags-in-order/2693/3 "2023-11-21T12:51:48Z")

</div>

Hello @mendyw,

Thanks for reaching out and welcome to our Developer Community!

The `order_add_tags` mutation will achieve the functionality you’re looking for:

```auto
mutation {
  order_add_tags(data: { order_id: "408498438", tags: ["test5"] }) {
    request_id
    complexity
    order {
      id
      legacy_id
    }
  }
}

```

I don’t believe that’s a bug, but I will ask the team why the tags are returned differently between the order and orders query.

Please let me know if you have any questions or concerns.

Best,  
RayanP
