I want to use below query in TypeOrm but can't find a way to convert it to TypeOrm.
Any help is appreciated.
SELECT * FROM blocked_times bt
LEFT JOIN LATERAL (
SELECT * FROM bookings bk WHERE bt."startTime" < bk."endTime"
) bk ON bk."clinicId" = bt."clinicId"