I have some promise chain to add data. If I use it "normally" in a JavaScript file, I start with Node.js or call it some other way, it works (more or less - different question).
But if I want to use it at a sequelize seed file with the sequelize-cli (sequelize db:seed:all), the promises won't work. OK, there's an error that runs into the .catch
chain, but the .then
won't work...
The promise fields are all undefined...
I know I can use bulkInsert, but why do I use an ORM if I "have to" use raw SQL, especially if I have links between the tables that point to uuid's?
I defined the models, had a "normal" migrate file, and want the "start" data with a seed. Do I need something separate to use create / bulkCreate promises?
Did I miss something in the documentation?