How do i query a table with multiple conditions? Here are the examples both working:
Post.findAll({ where: ['deletedAt IS NULL'] }).success()
and
Post.findAll({ where: {topicId: req.params.id} }).success()
Then, if i need conditions combined, i feel like i need to do something like
Post.findAll({ where: [{topicId: req.params.id}, 'deletedAt IS NULL'] }).success()
, but it doesn't work.
What is the syntax the sequelize waits for?
node debug says:
DEBUG: TypeError: Object # has no method 'replace'
if it matters...