update staff entity schema and crud
This commit is contained in:
@@ -3,12 +3,75 @@ query listStaff @auth(level: USER) {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
vendorName
|
||||
manager
|
||||
contactNumber
|
||||
email
|
||||
department
|
||||
hubLocation
|
||||
track
|
||||
position
|
||||
profileType
|
||||
employmentType
|
||||
english
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
vendorName
|
||||
manager
|
||||
contactNumber
|
||||
email
|
||||
department
|
||||
hubLocation
|
||||
track
|
||||
position
|
||||
profileType
|
||||
employmentType
|
||||
english
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
certifications
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user