title: Node Aggregate Log
body: <p>i am looking to get a simple random sample using Node.</p>
  
  <p>In the console it works with <code>db.commands.aggregate({$sample: { size: 1 }})</code></p>
  
  <p>But when i <code>console.log</code> the result using Node it returns an AggregationCursor object.</p>
  
  <pre><code>commands.aggregate( [{ $sample: { size: 1 } }], function(err, result) {
      console.log(result);
      client.close();
  });
  </code></pre>