84 lines
1.4 KiB
GraphQL
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: String,
|
|
$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
|
|
}
|
|
}
|