Posts by Ger • 31 points
2 posts
-
2
votes1
answer589
viewsA: Entity mapping Many to Many with typeorm
I managed to get the desired result by doing the following: In the group entity: @OneToMany(() => GroupMember, groupMember => groupMember.groups) members: GroupMember[]; In the user entity…
-
1
votes1
answer589
viewsQ: Entity mapping Many to Many with typeorm
What I want to do is a list of all the objects that are related by the ID to an entity. In this project, a group has several users and one user belongs to several groups. Group entity:…