TypeError: DB.Collection Имя не является функцией
db.listCollections().toArray(function(err, collections){
//collections = [{"name": "coll1"}, {"name": "coll2"}]
});
Undefined