I would like to know how to add "OR" condition in waterline query. Should look like:
User.find().where({
score: { '>': req.params.score},
status: 'user'
OR
status: 'admin'
}).exec(function(err, data){
...
});
So we have 2 conditions:
1) Score > specific number
And 2) status = user
OR
1) Status = admin.