Inconsistent Sequelize query construct for custom query

sequelize.where uses 3 parameters and if you omit the 2 last ones they will be ‘=’ and ‘null’ respectively. You should do something like this:

sequelize.where(sequelize.literal('"Message"."status"'), '=', 'read')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top