mongodb database instance
collection name
logger instance
Private collectioncollection name
Private dbmongodb database instance
Private loggerlogger instance
Count the records in the collection by condition
filter
Optional search: SearchAggregatorTypesearch condition (only for atlas hosted mongodb full text search)
number of records
Create a new record of entity
object to create
id of the created object
Create list of record
objects to create
id list
Delete by condition
condition to delete
number of records deleted
Find records with pagination
condition
orderby condition
Optional pagination: PaginationOptionspagination condition
Optional custom: Document[] | SearchAggregatorTypesome custom behaviors, pipeline or condition (only for atlas hosted mongodb full text search)
Paginated search result
Find records with pagination
find with pagination options
Paginated search result
softDelete by condition
condition to delete
number of records deleted
Update a record by id
id of object to update
data to update
id of the updated object
Generated using TypeDoc
Repository class for MongoDB Make db operations easier across the services