new teamHub entity

This commit is contained in:
José Salazar
2025-11-26 11:45:43 -05:00
parent 8270587f05
commit 008be23145
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
query listTeamHub @auth(level: USER) {
teamHubs {
id
teamId
hubName
departments
}
}
query getTeamHubById(
$id: UUID!
) @auth(level: USER) {
teamHub(id: $id) {
id
teamId
hubName
departments
}
}
query filterTeamHub(
$teamId: UUID,
$hubName: String
) @auth(level: USER) {
teamHubs(
where: {
teamId: { eq: $teamId }
hubName: { eq: $hubName }
}
) {
id
teamId
hubName
departments
}
}