Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb limit find node

app.get('/', function(req, res){       
    db.property.find({}).sort({timestamp: -1}).limit(1).toArray(function (err, docs) {
     res.render("index.ejs",{property: docs});
    })
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #limit #find #node
ADD COMMENT
Topic
Name
1+7 =