You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
This would make the express-generator more stable since mpromise is deprecated.
mongoose.Promise = require('bluebird');
I will submit a pull request when I have it implemented.
The text was updated successfully, but these errors were encountered:
codevalve
changed the title
Use bluebird as the promise engine for mongoose by default when using mongodb.
Use bluebird as the promise engine for mongoose by default.
Jan 19, 2017
The mongoose.Promise property sets the promises mongoose uses. However, this does not affect the underlying MongoDB driver. If you use the underlying driver, for instance Model.collection.db.insert(), you need to do a little extra work to change the underlying promises library.
This would make the express-generator more stable since mpromise is deprecated.
mongoose.Promise = require('bluebird');
I will submit a pull request when I have it implemented.
The text was updated successfully, but these errors were encountered: