title: How do I search for an object by its ObjectId in the mongo console?
body: <p>I've found this question answered for C# and Perl, but not in the native interface. I thought this would work: </p>
  
  <p><code>db.theColl.find( { _id: ObjectId("4ecbe7f9e8c1c9092c000027") } )</code></p>
  
  <p>The query returned no results. I found the 4ecbe7f9e8c1c9092c000027 by doing <code>db.theColl.find()</code> and grabbing an ObjectId. There are several thousand objects in that collection.</p>
  
  <p>I've read all the pages that I could find on the mongodb.org website and didn't find it. Is this just a strange thing to do? It seems pretty normal to  me.</p>