Files
Krow-workspace/legacy/dataconnect-v1/connector/costCenter/mutations.gql
2026-03-18 15:04:18 +01:00

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)
}