{ useNewUrlParser: true } to MongoClient.connect. warnning code example
Example: { useNewUrlParser: true } to MongoClient.connect. warnning
mongoose.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true });
mongoose.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true });