Sep 7, 2018 · 1 min read
Use
mongoose.connect(“mongodb://localhost:27017/node-demo”, { useNewUrlParser: true });
instead of
mongoose.connect(“mongodb://localhost:27017/node-demo”);
It will eliminate the warning message when you launch the app.
Use
mongoose.connect(“mongodb://localhost:27017/node-demo”, { useNewUrlParser: true });
instead of
mongoose.connect(“mongodb://localhost:27017/node-demo”);
It will eliminate the warning message when you launch the app.