Tell us what’s happening:
Hello guys. I don’t know what i doing wrong to cannot connect to the DB. The only error i’m receiving is ‘“mongoose” should be connected to a database’. So my code is there, i did set the user, password and database name correct?
I’ve edited your post to remove your sensitive information. As a general rule, you do not want to post the credentials for your database anywhere public.
As for the bug, have you verified that you whitelisted the requisite IP addresses in your MongoDB Atlas settings?