🔥More exclusive content: https://productioncoder.com/you-decide-what-we-build-next
Twitter: https://twitter.com/_jgoebel
Website: https://jangoebel.com
Blog: https://productioncoder.com
Code: https://github.com/productioncoder/typeorm-tutorial
00:00 introduction to TypeORM relations
02:38 TypeORM One-to-One relationships
03:51 TypeORM Join Column
05:45 creating a new entity for One-To-Many relationship
07:02 One-To-Many TypeORM relationship
07:50 TypeORM Many-to-One relationship
08:21 TypeORM Many-to-Many relationships
09:51 conclusion
In this video we will cover TypeORM relations in detail. We talk about one-to-one, many-to-one, one-to-many and many-to one relationships.
We start by creating new TypeORM entities for which we want to set up the different types of relationships. We then go through all relevant Typescript annotations we need to use to tell TypeORM what type of relationship we want to have.
We also talk about the meaning of the JoinTable and the JoinColumn annotation and what effect it has on the entities.