Skip to content

bpmn-server / MongoDB

Class: MongoDB#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

new MongoDB(dbConfig, logger): MongoDB

Parameters#

Name Type
dbConfig any
logger any

Returns#

MongoDB

Defined in#

datastore/MongoDB.ts:23

Properties#

client#

client: any

Defined in#

datastore/MongoDB.ts:19


dbConfig#

dbConfig: any

Defined in#

datastore/MongoDB.ts:20


logger#

logger: any

Defined in#

datastore/MongoDB.ts:21


operation#

operation: any

Defined in#

datastore/MongoDB.ts:22

Methods#

profilerStart#

profilerStart(operation): void

Parameters#

Name Type
operation any

Returns#

void

Defined in#

datastore/MongoDB.ts:28


profilerEnd#

profilerEnd(): void

Returns#

void

Defined in#

datastore/MongoDB.ts:33


getClient#

getClient(): Promise\<any>

Returns#

Promise\<any>

Defined in#

datastore/MongoDB.ts:38


find#

find(dbName, collName, qry, projection?): Promise\<unknown>

Parameters#

Name Type Default value
dbName any undefined
collName any undefined
qry any undefined
projection any null

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:45


createIndex#

createIndex(dbName, collName, index, unique?): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
index any
unique Object

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:74


insert#

insert(dbName, collName, docs): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
docs any

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:99


update#

update(dbName, collName, query, updateObject, options?): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
query any
updateObject any
options Object

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:126


update2#

update2(dbName, collName, query, updateObject, options?): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
query any
updateObject any
options Object

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:151


remove#

remove(dbName, collName, query): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
query any

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:176


removeById#

removeById(dbName, collName, id): Promise\<unknown>

Parameters#

Name Type
dbName any
collName any
id any

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:206


connect#

connect(): Promise\<unknown>

Returns#

Promise\<unknown>

Defined in#

datastore/MongoDB.ts:234