[Fix] MongoDB DeprecationWarning in NodeJS

1 min read
Got an error message of "DeprecationWarning:", and not sure where is wrong from the code.
The problem solved with this :
mongoose.connect('mongodb://localhost/node-js-blog-dbtest',
{useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true })
0
Subscribe to my newsletter
Read articles from STIPΞN directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
