{Gunakan UnifiedTopology: True}
mongoose.connect("mongodb://localhost:27017/NAME", { useUnifiedTopology: true, useNewUrlParser: true });
Helpless Hippopotamus
mongoose.connect("mongodb://localhost:27017/NAME", { useUnifiedTopology: true, useNewUrlParser: true });
mongo --version