When I enter a sentence with single quotes in it, I'll get an error because sequelize treat it as closing string. How do I solve this? I've tried using sqlstring module to no avail. (I understand that to escape the single quote I have to double it up. Is there another way to do it with Sequelize?)
sequelize
.query(
` UPDATE dbo.Comments
SET bio = '${req.body.comment}' where id= '${
req.session.id
}';`,
{ model: Comments}
)