one to one query
I have a 2 models relation one to one,
This is the result that I want, however I want to use a where inside visitLog to filter by status
in other hands this is working but typescript is throwing error
The result I want
both are working but the first one i'm not able to filter on visitLog object.
in the second aswell are working but there are typescript errors .
visit and visit_log, visit_log stores the visitId for reference to the visit tableThis is the result that I want, however I want to use a where inside visitLog to filter by status
in other hands this is working but typescript is throwing error
The result I want
both are working but the first one i'm not able to filter on visitLog object.
in the second aswell are working but there are typescript errors .