How to retrieve a nested relationship using TypeORM
Given a OneToMany
relationship to an entity containing a ManyToOne
relationship, how do we retrieve the nested relationship's entity when making a MySQL query using TypeORM?
Let's say we have chairs, which are assigned to users via chairs assignments, and users. This would be our main entity's model: