new ConnectionPool(name, uri [, options])
Parameters:
| Name | Type | Argument | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
String | : name of this connection pool; a global variable with this name will be created referencing the connection created |
||||||||||||||||
uri |
Object | : DB URI |
||||||||||||||||
options |
Object |
<optional> |
: connection options Properties
|
- Source:
Methods
-
connect()
-
Open the connection to the session database.
Since v2.0 Creates both a Mongo (direct driver) and Mongoose connection pool (Mongoose by default, Mongo upon request)- Source:
Returns:
- Type
- Promise