Unfortunately the Sequelize Model.destroy method does not allow an include option. The include option is generally used to make join queries that allow the user to query/populate across tables. And it makes some sense why Sequelize would do that, its trying to handle cascades, truncates, paranoid, etc.
But, this library is already making some abstractions above this like $returning, etc. I would like to update the _remove method to use the idList approach found in the _patch method.
Unfortunately the Sequelize
Model.destroy
method does not allow aninclude
option. Theinclude
option is generally used to make join queries that allow the user to query/populate across tables. And it makes some sense why Sequelize would do that, its trying to handle cascades, truncates, paranoid, etc. But, this library is already making some abstractions above this like$returning
, etc. I would like to update the_remove
method to use theidList
approach found in the_patch
method.