GraphQL query to Hold already existing orders

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.

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