Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

deleting an instance in sequelize

const jane = await User.create({ name: "Jane" });
console.log(jane.name); // "Jane"
await jane.destroy();
// Now this entry was removed from the database
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #deleting #instance #sequelize
ADD COMMENT
Topic
Name
3+6 =