30 lines
484 B
GraphQL
30 lines
484 B
GraphQL
mutation createCostCenter(
|
|
$name: String!
|
|
$businessId: UUID!
|
|
) @auth(level: USER) {
|
|
costCenter_insert(
|
|
data: {
|
|
name: $name
|
|
businessId: $businessId
|
|
}
|
|
)
|
|
}
|
|
|
|
mutation updateCostCenter(
|
|
$id: UUID!
|
|
$name: String
|
|
$businessId: UUID
|
|
) @auth(level: USER) {
|
|
costCenter_update(
|
|
id: $id,
|
|
data: {
|
|
name: $name
|
|
businessId: $businessId
|
|
}
|
|
)
|
|
}
|
|
|
|
mutation deleteCostCenter($id: UUID!) @auth(level: USER) {
|
|
costCenter_delete(id: $id)
|
|
}
|