-
Notifications
You must be signed in to change notification settings - Fork 76
old version of mongoose #3
Copy link
Copy link
Open
Description
if someone have a probleme like this : throw new MongooseError('Mongoose.prototype.connect() no longer accepts a callback');
when you use " mongoose.connect(process.env.MONGO_URL, (err) => {
if (err) throw err;
});
you can fixe it by :
mongoose.connect(process.env.MONGO_URL)
.then(()=>{
console.log("connection successfuly !")
}).catch((err)=>{
console.log("unsuccessfull connection")
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels