Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究节点 ORM。
我想根据逻辑 OR 条件查找记录。
您必须在 Person 模型的 find 方法中传递以下数组。
Person.find({or:[{col1: 1}, {col2: 2}]}, function(err, res) { // res 是 Person 其中 col1 == 1 或 col2 == 2 });