38 lines
855 B
GraphQL
38 lines
855 B
GraphQL
|
|
# ----------------------------------------------------------
|
|
# CREATE COST CENTER
|
|
# ----------------------------------------------------------
|
|
mutation createCostCenter(
|
|
$name: String!
|
|
$createdBy: String
|
|
) @auth(level: USER) {
|
|
costCenter_insert(
|
|
data: {
|
|
name: $name
|
|
createdBy: $createdBy
|
|
}
|
|
)
|
|
}
|
|
|
|
# ----------------------------------------------------------
|
|
# UPDATE COST CENTER
|
|
# ----------------------------------------------------------
|
|
mutation updateCostCenter(
|
|
$id: UUID!
|
|
$name: String
|
|
) @auth(level: USER) {
|
|
costCenter_update(
|
|
id: $id
|
|
data: {
|
|
name: $name
|
|
}
|
|
)
|
|
}
|
|
|
|
# ----------------------------------------------------------
|
|
# DELETE COST CENTER
|
|
# ----------------------------------------------------------
|
|
mutation deleteCostCenter($id: UUID!) @auth(level: USER) {
|
|
costCenter_delete(id: $id)
|
|
}
|