Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support .then functions #146

Open
jelordreygulle opened this issue Nov 5, 2019 · 0 comments
Open

Does not support .then functions #146

jelordreygulle opened this issue Nov 5, 2019 · 0 comments

Comments

@jelordreygulle
Copy link

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) {

    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant