chore(legacy): relocate v1 dataconnect source
This commit is contained in:
68
legacy/dataconnect-v1/connector/teamHudDeparment/queries.gql
Normal file
68
legacy/dataconnect-v1/connector/teamHudDeparment/queries.gql
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
# ----------------------------------------------------------
|
||||
# LIST ALL (admin/debug)
|
||||
# ----------------------------------------------------------
|
||||
query listTeamHudDepartments(
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
teamHudDepartments(offset: $offset, limit: $limit) {
|
||||
id
|
||||
name
|
||||
costCenter
|
||||
|
||||
teamHubId
|
||||
teamHub {
|
||||
id
|
||||
hubName
|
||||
}
|
||||
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------
|
||||
# GET BY ID
|
||||
# ----------------------------------------------------------
|
||||
query getTeamHudDepartmentById($id: UUID!) @auth(level: USER) {
|
||||
teamHudDepartment(id: $id) {
|
||||
id
|
||||
name
|
||||
costCenter
|
||||
|
||||
teamHubId
|
||||
teamHub {
|
||||
id
|
||||
hubName
|
||||
}
|
||||
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------
|
||||
# LIST BY TEAM HUB ID
|
||||
# ----------------------------------------------------------
|
||||
query listTeamHudDepartmentsByTeamHubId(
|
||||
$teamHubId: UUID!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
teamHudDepartments(
|
||||
where: { teamHubId: { eq: $teamHubId } }
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
name
|
||||
costCenter
|
||||
|
||||
teamHubId
|
||||
teamHub {
|
||||
id
|
||||
hubName
|
||||
}
|
||||
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user