view shits of ordes by date
This commit is contained in:
@@ -293,3 +293,42 @@ query listShiftRolesByVendorId(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#orders view client
|
||||
query listShiftRolesByBusinessAndDateRange(
|
||||
$businessId: UUID!
|
||||
$start: Timestamp!
|
||||
$end: Timestamp!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
shiftRoles(
|
||||
where: {
|
||||
shift: {
|
||||
date: { ge: $start, le: $end }
|
||||
order: { businessId: { eq: $businessId } }
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
orderBy: { createdAt: DESC }
|
||||
) {
|
||||
shiftId
|
||||
roleId
|
||||
count
|
||||
assigned
|
||||
hours
|
||||
startTime
|
||||
endTime
|
||||
totalValue
|
||||
role { id name }
|
||||
shift {
|
||||
id
|
||||
date
|
||||
location
|
||||
locationAddress
|
||||
title
|
||||
order { id }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user