title: How do I connect to mongodb with node.js (and authenticate)?
body: <p>How do I connect to mongodb with node.js?</p>
  
  <p>I have the node-mongodb-native driver.</p>
  
  <p>There's apparently 0 documentation.</p>
  
  <p>Is it something like this?</p>
  
  <pre><code>var mongo = require('mongodb/lib/mongodb'); 
  var Db= new mongo.Db( dbname, new mongo.Server( 'mongolab.com', 27017, {}), {}); 
  </code></pre>
  
  <p>Where do I put the username and the password?</p>
  
  <p>Also how do I insert something?</p>
  
  <p>Thanks.</p>