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

Cannot read properties of undefined (reading 'field') at generateJoin

Open shaharfreidenberg opened this issue 3 years ago • 0 comments

I have two models: Service and ServiceRepo, when the Service model contains a foreign key to the ServiceRepo model.

Screen Shot 2022-08-14 at 12 27 21

When I'm trying to include the ServiceRepo in the query like this:

Screen Shot 2022-08-14 at 12 33 37 I'm getting the following error: Screen Shot 2022-08-14 at 12 31 13

I'm using sequelize version 6.15.0, sequelize-typescript version 2.1.2 and typescript version 4.5.5.

shaharfreidenberg avatar Aug 14 '22 09:08 shaharfreidenberg