Constructor
new MongoDBService() → {MongoDBService}
Returns:
a MongoDBService instance.
- Type
- MongoDBService
Methods
db(databaseName, optionsopt) → {DB}
Get a DB instance
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
databaseName |
String | The MongoDB database name |
|
options |
Object |
<optional> |
Additional options. |
Returns:
returns a DB instance representing a MongoDB database.
- Type
- DB