relations to the same table
Is this not possible to do?
I get an error when rinning the studio:
Error: There are multiple relations between "__public__.Companies" and "companies". Please specify relation name
this error disappears if i remove the self referential relations8 Replies
Hey! Is this relationship described in your schema?
hey.
no, it's not, but that has never been a problem
Where did you get this relation from then?
it just "is"
You need to specify
relationName
when you define multiple relations between the same two tables
https://orm.drizzle.team/docs/rqb#disambiguating-relationsDrizzle ORM - Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
thank you