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