fix: Assign hub manager to order

This commit is contained in:
dhinesh-m24
2026-02-25 14:07:26 +05:30
parent fc771c1598
commit 5cc4b1f00e
4 changed files with 166 additions and 0 deletions

View File

@@ -98,3 +98,26 @@ mutation updateOrder(
mutation deleteOrder($id: UUID!) @auth(level: USER) {
order_delete(id: $id)
}
mutation assignHubManagerToOrder(
$orderId: UUID!
$hubManagerId: UUID!
) @auth(level: USER) {
order_update(
id: $orderId
data: {
hubManagerId: $hubManagerId
}
)
}
mutation removeHubManagerFromOrder(
$orderId: UUID!
) @auth(level: USER) {
order_update(
id: $orderId
data: {
hubManagerId: null
}
)
}