Retrieve last mongodb entry in nodejs
<p>I Need help to retrieve last record from my collection. I have this code:</p>

<pre><code>    db.collection('bbb1collection', function(err, collection) {
    collection.find({}).sort({_id:-1}).limit(1).toArray(function(err, results) {
        path = results;
    console.log(results);
}
</code></pre>