fix: Issue 523, 536 to delete duplicate queries and create cost center schema and queries

This commit is contained in:
dhinesh-m24
2026-02-25 15:21:45 +05:30
parent 99c6013453
commit d126ece7ce
7 changed files with 135 additions and 43 deletions

View File

@@ -0,0 +1,37 @@
# ----------------------------------------------------------
# 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)
}