new MongoClient(service, client)
Create Mongo client
Parameters:
| Name | Type | Description |
|---|---|---|
service |
Mongo | Mongo service instance |
client |
object | Mongo client instance |
Properties:
| Name | Type | Description |
|---|---|---|
client |
object | Mongo client |
Methods
-
done()
-
Client termination
-
collection(name)
-
Get Mongo collection
Parameters:
Name Type Description namestring Collection name Returns:
- Type
- object