Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Associations in the ES6 Class Way #758

Open
Shazam72 opened this issue Jun 5, 2024 · 0 comments
Open

Model Associations in the ES6 Class Way #758

Shazam72 opened this issue Jun 5, 2024 · 0 comments

Comments

@Shazam72
Copy link

Shazam72 commented Jun 5, 2024

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 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

No tasks being tracked yet.
@Shazam72 Shazam72 changed the title Associations in Model Class Model Associations in the ES6 Class Way Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant