title: node.js mongodb select document by _id node-mongodb-native
body: <p>I'm trying to select a document by id</p>
  
  <p>I've tried:</p>
  
  <pre><code>collection.update({ "_id": { "$oid": + theidID } }
  
  collection.update({ "_id": theidID }
  
  collection.update({ "_id.$oid": theidID }}
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>collection.update({ _id: new ObjectID(theidID ) }
  </code></pre>
  
  <p>This gives me an error 500...</p>
  
  <pre><code>var mongo = require('mongodb')
  var BSON = mongo.BSONPure;
  var o_id = new BSON.ObjectID(theidID );
  
  collection.update({ _id: o_id }
  </code></pre>
  
  <p>None of these work. How to select by _id?</p>