How to connect mongoose to the database?

Do you’ve the URI ? e.g.

mongodb+srv://:@<cluster#-dbname>.mongodb.net/test?retryWrites=true

If yes, where are adding to your project?