skip to Main Content

Error: Invalid schema, expected `mongodb` or `mongodb+srv` i dont know what the issue could be

i'm setting up mongoDB and i keep getting error Error: Invalid schema, expected mongodb or mongodb+srv please help me, const mongoose = require('mongoose') const connectionString = "mongodb + srv://PLACEHOLDER:<PLACEHOLDER>@cluster0.czgrzdd.mongodb.net/TASK-MANAGER?retryWrites=true&w=majority&appName=Cluster0" mongoose.connect(connectionString).then(() => console.log('connected to the db')).catch((err) => console.log(err))` the placeholders are…

VIEW QUESTION
Back To Top
Search