gridfs-stream
gridfs-stream copied to clipboard
exist and remove causing trouble
Hi all,
Im' having difficulties with the following:
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.
Any idea?
{filename} » {filename: filename}