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
When using the class way (ES6) to create models in sequelize, the documentation failed to explain correctly how to implement associations (HasOne, HasMany, BelongsTo, BelongsToMany and also Polymorphic relationship). All in the documentation is about .define() method. Basically that leads developpers to search through the internet about the correct way to use associations and that's already good but it would be perfect if all the informations relatively to sequelize were to be found directly on the documentation instead of forums where sometimes everything's mixed
What was unclear/insufficient/not covered in the documentation
The documentation failed to provide sufficient intel about associations using the class way (ES6)
If possible: Provide some suggestion on how we can enhance the docs
Additional context
<-- Add any other context or screenshots about the issue here. -->
### Tasks
The text was updated successfully, but these errors were encountered:
Shazam72
changed the title
Associations in Model Class
Model Associations in the ES6 Class Way
Jun 5, 2024
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When using the class way (ES6) to create models in sequelize, the documentation failed to explain correctly how to implement associations (HasOne, HasMany, BelongsTo, BelongsToMany and also Polymorphic relationship). All in the documentation is about
.define()
method. Basically that leads developpers to search through the internet about the correct way to use associations and that's already good but it would be perfect if all the informations relatively to sequelize were to be found directly on the documentation instead of forums where sometimes everything's mixedWhat was unclear/insufficient/not covered in the documentation
The documentation failed to provide sufficient intel about associations using the class way (ES6)
If possible: Provide some suggestion on how we can enhance the docs
Additional context
<-- Add any other context or screenshots about the issue here. -->
The text was updated successfully, but these errors were encountered: