Hi @Mayank_Saini,
Could you try with mongodb://localhost:27017/<database> where <database> is the name of the database you want to connect to. If you are using a different port for MongoDB, you should replace 27017 with the port number you are using.
I hope it helps! Please keep the community posted in case the issues persist.
Best regards,
Kushagra