Połączenie Mongoose
const mongoose = require("mongoose");
// database connection with mongoose
mongoose.connect("mongodb://localhost/todos", {
useNewUrlParser: true,
useUnifiedTopology: true
})
.then(() => console.log("connection successful"))
.catch((err) => console.log(err));
Noob Learner