Files
Krow-workspace/dataconnect/connector/sector/mutations.gql
2025-11-26 15:19:34 -05:00

36 lines
627 B
GraphQL

mutation CreateSector(
$sectorNumber: String!,
$sectorName: String!,
$sectorType: SectorType
) @auth(level: USER) {
sector_insert(
data: {
sectorNumber: $sectorNumber
sectorName: $sectorName
sectorType: $sectorType
}
)
}
mutation UpdateSector(
$id: UUID!,
$sectorNumber: String,
$sectorName: String,
$sectorType: SectorType
) @auth(level: USER) {
sector_update(
id: $id,
data: {
sectorNumber: $sectorNumber
sectorName: $sectorName
sectorType: $sectorType
}
)
}
mutation DeleteSector(
$id: UUID!
) @auth(level: USER) {
sector_delete(id: $id)
}