DEV Community

loading...

Discussion on: Help With Mongoose

Collapse
hellnar profile image
Stas Klymenko

Here is a page from Mongoose about this kind of errors:
mongoosejs.com/docs/deprecations.html

I've used all these 4 settings and the problem was solved:

mongoose.set('useNewUrlParser', true);
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
mongoose.set('useUnifiedTopology', true);

Collapse
cdthomp1 profile image
Cameron Thompson Author

I have also tried this and still get the warning.