sequelize-typescript
sequelize-typescript copied to clipboard
Cannot read properties of undefined (reading 'field') at generateJoin
I have two models: Service and ServiceRepo, when the Service model contains a foreign key to the ServiceRepo model.
When I'm trying to include the ServiceRepo in the query like this:
I'm getting the following error:
I'm using sequelize version 6.15.0, sequelize-typescript version 2.1.2 and typescript version 4.5.5.