I have an string array of id's that i'd like to use with the find function.
db.companies.find( { _id : { $in : arr} });
arr looks something like this,
[ '563a2c60b511b7ff2c61e938', '563a2c60b511b7ff2c61e8b7' ];
I see from the documentation that ObjectID() doesn't accept arrays. How can I search for a list of documents with this array? Will I have to recreate the array so that all elements are ObjectID's?