Answers for "belongsTo called with something that's not a subclass of Sequelize.Model."

0

belongsTo called with something that's not a subclass of Sequelize.Model.

Foto.belongsTo(User, {foreignKey: 'userId'});
Posted by: Guest on July-03-2020
0

belongsTo called with something that's not a subclass of Sequelize.Model.

User.hasMany(Foto,{as: 'fotos', foreignKey: 'userId'})
Posted by: Guest on July-03-2020

Code answers related to "belongsTo called with something that's not a subclass of Sequelize.Model."

Browse Popular Code Answers by Language