gridfs-stream icon indicating copy to clipboard operation
gridfs-stream copied to clipboard

Does not support .then functions

Open jelordreygulle opened this issue 6 years ago • 0 comments

I wanted to use promise in querying file using grid fs .

works

 gfs.findOne({ _id: '54da7b013706c1e7ab25f9fa'}, function (err, file) {
    console.log(file);
  });

does not work using promise

 gfs.findOne({ _id: '54da7b013706c1e7ab25f9fa'}).then(function (file) {
        console.log(file);
      }).catch(function (err) {

    })

jelordreygulle avatar Nov 05 '19 07:11 jelordreygulle