update and correction of create order
This commit is contained in:
@@ -55,6 +55,7 @@ mutation updateOrder(
|
||||
$businessId: UUID
|
||||
$location: String
|
||||
$status: OrderStatus
|
||||
$date: Timestamp
|
||||
$startDate: Timestamp
|
||||
$endDate: Timestamp
|
||||
$total: Float
|
||||
@@ -76,6 +77,7 @@ mutation updateOrder(
|
||||
businessId: $businessId
|
||||
location: $location
|
||||
status: $status
|
||||
date: $date
|
||||
startDate: $startDate
|
||||
endDate: $endDate
|
||||
total: $total
|
||||
|
||||
@@ -332,3 +332,52 @@ query listShiftRolesByBusinessAndDateRange(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#list shiftsroles for update order in client app
|
||||
query listShiftRolesByBusinessAndOrder(
|
||||
$businessId: UUID!
|
||||
$orderId: UUID!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
shiftRoles(
|
||||
where: {
|
||||
shift: {
|
||||
orderId: { eq: $orderId }
|
||||
order: { businessId: { eq: $businessId } }
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
orderBy: { createdAt: DESC }
|
||||
) {
|
||||
id
|
||||
shiftId
|
||||
roleId
|
||||
count
|
||||
assigned
|
||||
startTime
|
||||
endTime
|
||||
hours
|
||||
breakType
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
role { id name costPerHour }
|
||||
|
||||
shift {
|
||||
id
|
||||
title
|
||||
date
|
||||
orderId
|
||||
location
|
||||
locationAddress
|
||||
|
||||
order{
|
||||
vendorId
|
||||
date
|
||||
location
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user