| Parameter | Detail |
|---|---|
| hostX | Optional. You can specify as many hosts as necessary. You would specify multiple hosts, for example, for connections to replica sets. |
| :portX | Optional. The default value is :27017 if not specified. |
| database | Optional. The name of the database to authenticate if the connection string includes authentication credentialsIf /database is not specified and the connection string includes credentials, the driver will authenticate to the admin database. |
| ?options | Connection specific options |