Skip to content

mongodb

ralphhanna edited this page Dec 18, 2023 · 3 revisions

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:22

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

Methods

connect

connect(): Promise<unknown>

Returns

Promise<unknown>

Defined in

datastore/MongoDB.ts:210


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:59


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:33


getClient

getClient(): Promise<any>

Returns

Promise<any>

Defined in

datastore/MongoDB.ts:26


insert

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

Parameters

Name Type
dbName any
collName any
docs any

Returns

Promise<unknown>

Defined in

datastore/MongoDB.ts:84


remove

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

Parameters

Name Type
dbName any
collName any
query any

Returns

Promise<unknown>

Defined in

datastore/MongoDB.ts:154


removeById

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

Parameters

Name Type
dbName any
collName any
id any

Returns

Promise<unknown>

Defined in

datastore/MongoDB.ts:182


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:109


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:131

Clone this wiki locally