MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". first parameter to `mongoose.connect()`ion()` is a string
I am making an api using express js and i have used mongo db as a database . When i am connecting mongo db with the help of that string using dotenv file i am getting this error
i dont know why. please help me with this i am totally beginner with this.