Skip to content
Advertisement

Node.js Sequelize: multiple condition on ‘where’

How do i query a table with multiple conditions? This give me no error but, only run the first condition!

Advertisement

Answer

You create here an object with property condition2 and it’s value. You need to merge these 2 conditions, and assign them on where. so you can use:

OR:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement