Class: MongoDB
#
Implements#
Constructors#
constructor+ new MongoDB(mongooseConnection
: Connection): MongoDB
#
ParametersName | Type |
---|---|
mongooseConnection | Connection |
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>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/mongo.ts:61
#
deleteKeyâ–¸ deleteKey(key
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/mongo.ts:34
#
deleteUrlâ–¸ deleteUrl(key
: string, url
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/mongo.ts:45
#
getâ–¸ get(key
: string): Promise<Hook>
#
ParametersName | Type |
---|---|
key | string |
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