Returns an async MongoClient
for the given ConnectionUri
.
Returns an async MongoClient
for the given ConnectionUri
. Will fail
with a ConfigError
if the uri is invalid and with an EnvironmentError
if there is a problem connecting to the server.
NB: The connection is tested during creation and creation will fail if connecting to the server times out.