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

Mongoose: mpromise (mongoose's default promise library) is deprecated... #12

Open
TheoNolasco opened this issue Nov 4, 2016 · 0 comments

Comments

@TheoNolasco
Copy link

TheoNolasco commented Nov 4, 2016

Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

I've been getting this warning since July or so. From the details that I looked here: Automattic/mongoose#4291

The maintainer explains that the message tells you change from mongoose's default promise library. From the thread above, a fix would be to declare

mongoose.Promise = global.Promise;

(or another promise library) before the connect, which I have been doing interim.

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