Untitled
raw download clone
TEXT
views 26
,
size 247 b
MongoClient.connect(url, function(err, db) {
  if (err) throw err;
  var dbo = db.db("mydb");
  dbo.collection("customers").findOne({}, function(err, result) {
    if (err) throw err;
    console.log(result.name);
    db.close();
  });
});
close fullscreen
Login or Register to edit or fork this paste. It's free.