Files
Krow-workspace/dataconnect/connector/team/mutations.gql
José Salazar 29d5c78715 new team entity
2025-11-26 09:36:22 -05:00

48 lines
913 B
GraphQL

mutation CreateTeam(
$teamName: String!,
$ownerId: UUID!,
$ownerName: String!,
$ownerRole: TeamOwnerRole!,
$favoriteStaff: String,
$blockedStaff: String
) @auth(level: USER) {
team_insert(
data: {
teamName: $teamName
ownerId: $ownerId
ownerName: $ownerName
ownerRole: $ownerRole
favoriteStaff: $favoriteStaff
blockedStaff: $blockedStaff
}
)
}
mutation UpdateTeam(
$id: UUID!,
$teamName: String,
$ownerId: UUID,
$ownerName: String,
$ownerRole: TeamOwnerRole,
$favoriteStaff: String,
$blockedStaff: String
) @auth(level: USER) {
team_update(
id: $id,
data: {
teamName: $teamName
ownerId: $ownerId
ownerName: $ownerName
ownerRole: $ownerRole
favoriteStaff: $favoriteStaff
blockedStaff: $blockedStaff
}
)
}
mutation DeleteTeam(
$id: UUID!
) @auth(level: USER) {
team_delete(id: $id)
}