54 lines
740 B
GraphQL
54 lines
740 B
GraphQL
query listTeamHubs @auth(level: USER) {
|
|
teamHubs {
|
|
id
|
|
teamId
|
|
hubName
|
|
address
|
|
city
|
|
state
|
|
zipCode
|
|
managerName
|
|
isActive
|
|
departments
|
|
createdAt
|
|
updatedAt
|
|
createdBy
|
|
}
|
|
}
|
|
|
|
query getTeamHubById($id: UUID!) @auth(level: USER) {
|
|
teamHub(id: $id) {
|
|
id
|
|
teamId
|
|
hubName
|
|
address
|
|
city
|
|
state
|
|
zipCode
|
|
managerName
|
|
isActive
|
|
departments
|
|
createdAt
|
|
updatedAt
|
|
createdBy
|
|
}
|
|
}
|
|
|
|
query getTeamHubsByTeamId($teamId: UUID!) @auth(level: USER) {
|
|
teamHubs(where: { teamId: { eq: $teamId } }) {
|
|
id
|
|
teamId
|
|
hubName
|
|
address
|
|
city
|
|
state
|
|
zipCode
|
|
managerName
|
|
isActive
|
|
departments
|
|
createdAt
|
|
updatedAt
|
|
createdBy
|
|
}
|
|
}
|