new shift entity
This commit is contained in:
39
dataconnect/connector/shift/mutations.gql
Normal file
39
dataconnect/connector/shift/mutations.gql
Normal file
@@ -0,0 +1,39 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user