Wednesday, 19 February 2020

issues encountered while using sequelize

so , for a uni assignment , i have to write a node js api, i chose to use sequelize and i'm having issuesthe sequelize.import() method isn't working as described in the v5 doc, although i've found a fix by modifying the class declaration fromclass Classname extends sequelize.Model{}toclass Classname extends sequelize.Sequelize.Model{}when writing a foreign key definition using the example in the v5 doc, the model associated to it is marked as not defined.i've checked the version of sequelize in the package.jsonand it's version is 5.21.4 , which ,if i'm not mistaken is documented in the v5 doc , i am asking because i lack some experience using this module and can't find any other case of those issues with the search term i used and i feel like i'm hitting a wall

Submitted February 20, 2020 at 04:38AM by mrjuoji

No comments:

Post a Comment