Guest User

Untitled

a guest
Feb 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. db.getCollection('videos').find({})
  2.  
  3. MongoClient.connect(url, function(err, db) {
  4. if (err) throw err;
  5. var dbo = db.db("collection_archivedvideo");
  6. dbo.collection("videos").find({}).toArray(function(err, result) {
  7. if (err) throw err;
  8. console.log(result);
  9. console.log(result.length)
  10. db.close();
  11. });
  12. });
Add Comment
Please, Sign In to add comment