# GraphQL query to Hold already existing orders

**URL:** <https://community.shiphero.com/t/graphql-query-to-hold-already-existing-orders/1082>\
**Category:** GraphQL API\
**Created:** [January 28, 2021, 5:54am UTC](https://community.shiphero.com/t/graphql-query-to-hold-already-existing-orders/1082 "2021-01-28T05:54:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkatesh](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Venkatesh](https://community.shiphero.com/u/Venkatesh)\
**Post date:** [January 28, 2021, 5:54am UTC](https://community.shiphero.com/t/graphql-query-to-hold-already-existing-orders/1082/1 "2021-01-28T05:54:14Z")

</div>

Hi @tomasw,

For Order Update mutation, can we have a query to update similar to the below query?

mutation {  
order\_update(  
data: {  
order\_id: “T3JkZXI6MTcxNDE1NjE0”  
packing\_note: “Some note for the Packers”  
profile: “default”  
priority\_flag:true  
holds:{  
operator\_hold:true  
}  
}  
) {  
request\_id  
complexity  
}  
}

When I try to update it is throwing an exception as data has an invalid value.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [January 29, 2021, 2:20pm UTC](https://community.shiphero.com/t/graphql-query-to-hold-already-existing-orders/1082/2 "2021-01-29T14:20:47Z")

</div>

Hi @Venkatesh!  
That is correct, you will need to update the holds using. different mutation, something like this:

```
mutation {
  order_update_holds(
    data: { order_id: "T3JkZXI6MTcxNDE1NjE0", operator_hold: true }
  ) {
    request_id
    complexity
  }
}

```

Let me know if that doesn’t help.  
Thanks in advance!  
Tom
