Files
Krow-workspace/dataconnect/connector/staff/queries.gql
2025-12-02 09:18:01 -05:00

84 lines
1.4 KiB
GraphQL

query listStaff @auth(level: USER) {
staffs {
id
employeeName
vendorId
vendorName
manager
contactNumber
email
department
hubLocation
track
position
profileType
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}
query getStaffById(
$id: UUID!
) @auth(level: USER) {
staff(id: $id) {
id
employeeName
vendorId
vendorName
manager
contactNumber
email
department
hubLocation
track
position
profileType
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}
query filterStaff(
$employeeName: String,
$vendorId: UUID,
$department: StaffDepartment,
$employmentType: EmploymentType,
$english: EnglishLevel,
$backgroundCheckStatus: BackgroundCheckStatus
) @auth(level: USER) {
staffs(
where: {
employeeName: { eq: $employeeName }
vendorId: { eq: $vendorId }
department: { eq: $department }
employmentType: { eq: $employmentType }
english: { eq: $english }
backgroundCheckStatus: { eq: $backgroundCheckStatus }
}
) {
id
employeeName
vendorId
vendorName
department
position
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}