Files
Krow-workspace/dataconnect/connector/shift/mutations.gql
2025-11-26 15:52:31 -05:00

40 lines
707 B
GraphQL

mutation CreateShift(
$shiftName: String!,
$startDate: Timestamp!,
$endDate: Timestamp,
$assignedStaff: String
) @auth(level: USER) {
shift_insert(
data: {
shiftName: $shiftName
startDate: $startDate
endDate: $endDate
assignedStaff: $assignedStaff
}
)
}
mutation UpdateShift(
$id: UUID!,
$shiftName: String,
$startDate: Timestamp,
$endDate: Timestamp,
$assignedStaff: String
) @auth(level: USER) {
shift_update(
id: $id,
data: {
shiftName: $shiftName
startDate: $startDate
endDate: $endDate
assignedStaff: $assignedStaff
}
)
}
mutation DeleteShift(
$id: UUID!
) @auth(level: USER) {
shift_delete(id: $id)
}