Skip to content

Hook to manage relationships #250

@daffl

Description

@daffl

Follow up from #211. Managing relationships with Sequelize is quite strange. For example it doesn't allow updating nested entries and creating nested relationship does not include them in the result (you have to re-fetch). There is an opportunity to add hooks that can help with that:

  • Go through each associated entry
  • Check if it has an id
    • If it does check if it has the association
    • If not, add it
  • If it doesn't, leave it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions