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.
このようなことは可能ですか?
User.find({'$or': [{user_id: 1}, {user_id: 2}]}, function(err, items){ }
はい、node-orm2 を使用すると、「OR」を使用して見つけることができます。
例 :
User.find({ user_id : [ "1", "2" ] })
これは、used_id = 1 または used_id = 2 を持つオブジェクトを返します。これは、'IN' 条件に似ています。