new sector entity

This commit is contained in:
José Salazar
2025-11-26 15:19:34 -05:00
parent 75836c6447
commit 104318a456
3 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
query listSector @auth(level: USER) {
sectors {
id
sectorNumber
sectorName
sectorType
}
}
query getSectorById(
$id: UUID!
) @auth(level: USER) {
sector(id: $id) {
id
sectorNumber
sectorName
sectorType
}
}
query filterSector(
$sectorNumber: String,
$sectorName: String,
$sectorType: SectorType
) @auth(level: USER) {
sectors(
where: {
sectorNumber: { eq: $sectorNumber }
sectorName: { eq: $sectorName }
sectorType: { eq: $sectorType }
}
) {
id
sectorNumber
sectorName
sectorType
}
}