Been searching this one for a while now, not sure if this is something unorthodox in the SQL world but I am trying to do a left join that counts with not null "deletedAt" column, but I cannot seem to find a way to do a left join which includes deletes.
This is just a dummy example that illustrates what I am trying to do, in this case I want to retrieve the person's information as well as the job's, but the job has been soft-deleted.
this.createQueryBuilder('person')
.leftJoinAndSelect('person.job', 'job')
The SQL query produced by this implicitly adds "IS NOT NULL" on the left join but I have this scenario in which I need the information from a record that is indeed deleted.
I haven't been able to find a way to include this as you would do it at the root level by including.
.withDeleted();
Anyone has any tips?