Skip to main content

What is MongoDB URI?

Lets understand what is MongoDB URI?

MongoDB URI is a connection string which usually uses for connecting MongoDB server and client. for example

 mongodb+srv://brigitte:bardot@xyz-1234.srv.net/admin

 mongodb+srv 

this is call srv uri string. SRV string start with mongodb+srv prefix which tell mongodb server uri string.
 brigitte:bardot

here brigitte is mongodb server credential user name. bardot is password

 xyz-1234.srv.net 

xyz-1234.srv.net is host name
 admin

admin is authenticate database. that crential is match into this database.