You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement a many-to-many relation between two entities inside the same relation.
Versions
sequelize: ^6.31.1
sequelize-typescript: ^2.1.5
typescript: ^5.0.4
Issue type
bug report
feature request
Actual behavior
When adding a scope to load the entities as in the sequelize-typescript-example, I am getting the following error: Error: Alias cannot be inferred: "User" has multiple relations with "User"
Expected behavior
Being able to access the followers and follows property of a user element.
Steps to reproduce
Adding the Models as below and trying to start the app.
Issue
I am trying to implement a many-to-many relation between two entities inside the same relation.
Versions
Issue type
Actual behavior
When adding a scope to load the entities as in the sequelize-typescript-example, I am getting the following error:
Error: Alias cannot be inferred: "User" has multiple relations with "User"
Expected behavior
Being able to access the followers and follows property of a user element.
Steps to reproduce
Adding the Models as below and trying to start the app.
Related code
The text was updated successfully, but these errors were encountered: