标签: node.js node-orm2
我正在处理Node ORM.
我想根据逻辑OR条件找到记录。
答案 0 :(得分:1)
您必须在Person模型的find方法中传递以下数组。
Person.find({or:[{col1: 1}, {col2: 2}]}, function(err, res) { // res is Person where col1 == 1 or col2 == 2 });