Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('videos').find({})
- MongoClient.connect(url, function(err, db) {
- if (err) throw err;
- var dbo = db.db("collection_archivedvideo");
- dbo.collection("videos").find({}).toArray(function(err, result) {
- if (err) throw err;
- console.log(result);
- console.log(result.length)
- db.close();
- });
- });
Add Comment
Please, Sign In to add comment