S
S
Sergey Beloventsev2016-08-27 13:53:28
Node.js
Sergey Beloventsev, 2016-08-27 13:53:28

How to get rid of DeprecationWarning?

actually here is the full text

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakhar Orlov, 2016-08-27
@Sergalas

https://github.com/Automattic/mongoose/issues/4291
Add mongoose.Promise = global.Promise;beforemongoose.connect(...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question