modifications queries, mutations of contact, recentPayment, shiftRole, teamhub

This commit is contained in:
José Salazar
2026-01-20 14:23:04 -05:00
parent 463c513a49
commit 4e09d21beb
9 changed files with 164 additions and 121 deletions

View File

@@ -51,3 +51,30 @@ query getTeamHubsByTeamId($teamId: UUID!) @auth(level: USER) {
createdBy
}
}
# ------------------------------------------------------------
# LIST TEAM HUBS BY OWNER (Vendor/Business)
# ------------------------------------------------------------
query listTeamHubsByOwnerId(
$ownerId: String!
) @auth(level: USER) {
teamHubs(
where: {
team: {
ownerId: { eq: $ownerId }
}
}
) {
id
teamId
hubName
address
city
state
zipCode
managerName
isActive
departments
createdAt
}
}