I have an array of ids and I want to get all document of them at once. For that I am writing but it return 0 records.
How can I search using multiple Ids ?
For finding records of multiple documents you have to use "$in" operator Although your query is fine, you just need to add ObjectId while finding data for Ids
db.feed.find({ "_id" : { "$in" : [ObjectId("55880c251df42d0466919268"), ObjectId("55bf528e69b70ae79be35006") ] } });