Can Javascript connect to mongodb?
I got error "throw new MongooseError('Mongoose.prototype.connect() no longer accepts a callback');" const mogoURI = "mongodb://localhost:27017/?directConnection=true"; const connectToMongo = ()=>{ mongoose.connect(mogoURI,()=>{ console.log("Connected to Mongo Successfully"); }) } module.exports = connectToMongo;```