query listCertification @auth(level: USER) {
  certifications {
    id
    employeeName
    certificationName
    certificationType
    status
    expiryDate
    validationStatus
  }
}

query getCertificationById(
  $id: UUID!
) @auth(level: USER) {
  certification(id: $id) {
    id
    employeeName
    certificationName
    certificationType
    status
    expiryDate
    validationStatus
    createdDate
    updatedDate
    createdBy
  }
}

query filterCertification(
  $employeeName: String,
  $certificationName: String,
  $certificationType: CertificationType,
  $status: CertificationStatus,
  $validationStatus: CertificationValidationStatus
) @auth(level: USER) {
  certifications(
    where: {
      employeeName: { eq: $employeeName }
      certificationName: { eq: $certificationName }
      certificationType: { eq: $certificationType }
      status: { eq: $status }
      validationStatus: { eq: $validationStatus }
    }
  ) {
    id
    employeeName
    certificationName
    certificationType
    status
    expiryDate
    validationStatus
  }
}
