sequelize-typescript icon indicating copy to clipboard operation
sequelize-typescript copied to clipboard

Class-tranformer usage with seuqlieze model class

Open roiefink opened this issue 2 years ago • 0 comments

Issue

Versions

  • sequelize:6.28.0
  • sequelize-typescript:^2.1.5
  • typescript:^4.9.4

Issue type

  • [v] bug report
  • [ ] feature request

when using for example X.findAll({includes:[Y]}) class-transformer throws [Class constructor Y cannot be invoked without 'new'] i am using es6 as target in my tsconfig as some threads show to solve this.

Being able to transform sequelize models in queries that use includes option

roiefink avatar Feb 06 '23 10:02 roiefink