title: findOne with mongoskin and node
body: <p>I'm trying (and failing miserably) to get a findOne function working on a mongodb. I followed this tutorial (<a href="http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/" rel="nofollow">http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/</a>) and it works fine, but when I tried to get just a simple findOne going I have had such problems, can someone please help me out? I have searched every tutorial I can and I know you can't just use findone({_id: "idnumber"}), but I don't know what is wrong with mine:</p>
  
  <pre><code>router.get('/userlist/:id', function(req, res) {
  db = req.db;
  ObjectID = require('mongoskin').ObjectID;
  var userToGet = req.params.id;
  db.collection('userlist').findOne({_id: db.ObjectID.createFromHexString(userToGet)}, function(err, result) {
      console.log(result.username);
  });
  });
  </code></pre>
  
  <p>I get the error "Cannot call method 'createFromHexString' of undefined", where should I require my mongoskin.objectid? </p>
  
  <p>My findall works perfectly:</p>
  
  <pre><code>router.get('/userlist', function(req, res) {
  db = req.db;
  db.collection('userlist').find().toArray(function (err, items) {
      res.json(items);
  });
  });
  </code></pre>
  
  <p>Any help would be GREATLY appreciated. </p>