1.0.0
Creates connection with mongodb, if fails, throws error
(any)
(any)
Promise<MongoClient>
:
MongoClient Promise
Type: MongoDBManager
(any
= {}
)
Configures mongoclient.
(MongoDBManagerConfiguration
= {}
)
Attrubites for configuration
Returns MongoDBManager instance.
MongoDBManager
:
Fetches all documents in given collection
Get max of given field from collection.
(string)
name of collection
(any)
(any)
(Db)
Database connection object
Promise<number>
:
Return maximum number 1 if no documents are matched/available
Updates one document from collection.
(string)
name of collection
(any)
Object containing query checks
(any)
Object containing new updated values
(Db)
Database connection object
Promise<CommandResult>
:
Command result promise
Updates one document from collection.
(string)
name of collection
(Object)
Object containing query checks
(Object)
Object delete options
(Db)
Database connection object
Promise<DeleteWriteOpResultObject>
:
Command result promise
Type: MongoClient