All Questions
Tagged with bulk-delete sequelize.js
2 questions
0
votes
2
answers
1k
views
Sequelize queryInterface bulkDelete does not reset id sequence
I use pg_dump to make a copy of the database, copy1.sql.
I run an up migration to create a new instance
up: asyn (queryInterface) => {
return await queryInterface.bulkInsert('keys', [{ clientKey: ...
0
votes
0
answers
658
views
What is the difference between bulk delete and destroy in sequelize?
I am trying to delete all my records from a table using sequelize but saw that there are two possible functions to use: queryInterface.bulkDelete and queryInterface.destroy . Can someone tell me what ...