var mongo = require('mongodb');
var Grid = require('gridfs-stream');
var db = new mongo.Db('dbtest', new mongo.Server("127.0.0.1", 27017));
var gfs = Grid(db, mongo);
var filename = 'emptyfile.txt';
gfs.exist({filename}, (err, found)=> {
if (err) {
throw err;
}
console.log('File Exists:' + found);
});
It simply exit whitout any error or log.
If I run it in debug it simply hang.
Hi all,
Im' having difficulties with the following:
It simply exit whitout any error or log. If I run it in debug it simply hang.
Any idea?