We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Almost all Mongoose methods return promises (using the mpromisemodule), but the methods added by this module don't.
mpromise
E.g.: User.findOne({name: me}).exec() vs. User.findByUsername(name, callback)
User.findOne({name: me}).exec()
User.findByUsername(name, callback)
It's not a big deal, just something I noticed. I guess this could be easily added without changing the callback arguments.
The text was updated successfully, but these errors were encountered:
Sounds good, I'm taking a look how to implement that.
Sorry, something went wrong.
+1
please...
This would be nice as it would also allow the use of async/await
async/await
No branches or pull requests
Almost all Mongoose methods return promises (using the
mpromise
module), but the methods added by this module don't.E.g.:
User.findOne({name: me}).exec()
vs.User.findByUsername(name, callback)
It's not a big deal, just something I noticed. I guess this could be easily added without changing the callback arguments.
The text was updated successfully, but these errors were encountered: