import connection details from mongodb srv connection string code example Example: mongodb local connection string mongodb://localhost:27017/mydbname