I need to get an object from the database and update one field by using sequels. I haven't found the update method in the documentation. Do you have any idea?
1 Answer
Post.update({
updatedAt: null,
}, {
where: {
deletedAt: {
$ne: null
}
}
});
From documentation.