G
G
Governor2022-02-22 22:19:59
ORM
Governor, 2022-02-22 22:19:59

How to specify existing tables for many-to-many relationship in typeORM?

I'm trying to transfer queries to typeORM, the tables already exist and are filled.
There was a need to implement a many-to-many relationship (using 3 tables), I figured out how to specify the main ones, but did not understand how to specify the linking table.
In the documentation examples, this does not seem to be indicated, because. typeORM is supposed to create the join table itself.

How do I specify my link table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Karo, 2022-02-22
@Zraza

Via JoinTable
https://stackoverflow.com/questions/58240290/typeo...
Or via a separate entity
https://typeorm.io/#many-to-many-relations/many-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question