Skip to main content

Class: MongoDB

Implements#

Constructors#

constructor#

+ new MongoDB(mongooseConnection: Connection): MongoDB

Parameters#

NameType
mongooseConnectionConnection

Returns: MongoDB

Defined in: db/mongo.ts:17

Properties#

conn#

• conn: Connection

Defined in: db/mongo.ts:16


hook#

• hook: Model<Hook & Document<any, any>, {}, {}>

Defined in: db/mongo.ts:17

Methods#

add#

â–¸ add(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/mongo.ts:61


deleteKey#

â–¸ deleteKey(key: string): Promise<boolean>

Parameters#

NameType
keystring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/mongo.ts:34


deleteUrl#

â–¸ deleteUrl(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/mongo.ts:45


get#

â–¸ get(key: string): Promise<Hook>

Parameters#

NameType
keystring

Returns: Promise<Hook>

Implementation of: DB

Defined in: db/mongo.ts:24


getDB#

â–¸ getDB(): Promise<Hook[]>

Returns: Promise<Hook[]>

Implementation of: DB

Defined in: db/mongo.ts:28