You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very nice to have an ability to define join type. Since if we have(and we have :)) nullable relation then entire entry will be missing from result set. We can just override getOne in service but out of the box feature would be more convenient. Thank you.
As a workaround
I'm thinking about overriding getJoinType and return left join for one to one. getJoinType is private, but // @ts-ignore should do the trick
If a particular optional relation is not present for the entity, the entry is not included in the join result.
crud/src/typeorm/repository-service.class.ts
Line 336 in 69da293
The text was updated successfully, but these errors were encountered: