Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Including soft deleted records

//In case you want to eager load soft deleted records you can do that by setting include.paranoid to false

User.findAll({
    include: [{
        model: Tool,
        where: { name: { [Op.like]: '%ooth%' } },
        paranoid: false // query and loads the soft deleted records
    }]
});
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #Including #soft #deleted #records
ADD COMMENT
Topic
Name
2+8 =