Skip to content

Model Associations in the ES6 Class Way #758

Open
@Shazam72

Description

@Shazam72

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

Preview Give feedback
No tasks being tracked yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions