feat: search now cover deeper relation
This commit is contained in:
parent
8a698ffbc8
commit
b1c9271f4c
1 changed files with 14 additions and 0 deletions
|
|
@ -67,6 +67,20 @@ export class RequestDataController extends Controller {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
employee: {
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
employeePassport: {
|
||||||
|
some: { number: { contains: query } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ code: { contains: query, mode: "insensitive" } },
|
||||||
|
{ firstName: { contains: query } },
|
||||||
|
{ firstNameEN: { contains: query } },
|
||||||
|
{ lastName: { contains: query } },
|
||||||
|
{ lastNameEN: { contains: query } },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
requestDataStatus,
|
requestDataStatus,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue