خرید بک لینک

Vote count: 0

To find an item

Products.findOne({"_id":"123456"}, callback);

To find few item I have to do

Products.find({"_id":{$in:[ObjectId("123456"),ObjectId("7891011")]}}}, callback);

but why I need to use ObjectId() in the second query? The first one worked without using ObjectId(), both of their schema is the same.

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 10 ارديبهشت 1395 ساعت: 10:39

صفحه بندی