Find a document with ObjectID in mongoDB?

Pretty sure you have to use a MongoId object, eg.

Pretty sure you have to use a MongoId object, eg $item = $collection->findOne(array( '_id' => new MongoId('4e49fd8269fd873c0a000000'))); The notes on the Querying page are a little obtuse but it does mention... Unless the user has specified otherwise, the _id field is a MongoId. The most common mistake is attepting to use a string to match a MongoId. Keep in mind that these are two different datatypes, and will not match each other in the same way that the string "array()" is not the same as an empty array.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions