Initializes a new instance of that class.
Check if options are valid and throw an error if not.
connect to database
Does a count on a MongoDB collection.
The collection's name.
The promise with the number of documents.
Create an index on a collection.
The collection's name.
The field or spec.
The promise with the result.
Delete documents from a MongoDB collection.
The collection's name.
The filter.
The promise with the result.
Delete a document from a MongoDB collection.
The collection's name.
The filter.
The promise with the result.
disconnect from database
Does a find on a MongoDB collection.
The collection's name.
The filter.
The promise with the result.
Does a findOne on a MongoDB collection.
The collection's name.
The filter.
The promise with the result or (null) if not found.
Get the MongoDB client.
The the MongoDB client.
Insert many documents into a MongoDB collection.
The collection's name.
The documents to insert.
The promise with the result.
Insert one document into a MongoDB collection.
The collection's name.
The document to insert.
The promise with the result.
Update documents in a MongoDB collection.
The collection's name.
The filter for the documents.
The update query for the documents.
The promise with the result.
Update one document in a MongoDB collection.
The collection's name.
The filter for the document.
The update query for the document.
The promise with the result.
Opens a new client connection if it doesn't exist and executes an action on it.
The action to invoke.
The promise with the result.
Generated using TypeDoc
A connection to a MongoDB database.