Skip to content

Add "save" to AssociationActionOptions optionsΒ #708

Open
@jabuj

Description

@jabuj

Versions

  • sequelize: ^5.21.2
  • sequelize-typescript: ^1.0.0
  • typescript: ^3.7.2

I'm submitting a ...

[x] bug report
[ ] feature request

Related

#244

Behavior

$set doesn't accept the save option described in sequelize documentation (https://sequelize.org/v5/class/lib/associations/belongs-to.js~BelongsTo.html#instance-method-set). The following code produces compilation error:

ModelA.$set('modelB', instanceOfB, { save: false })

It works with // @ts-ignore so it would be nice to add the save property to the AssociationActionOptions interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions