MongoStorageOptions
Defined in: src/storage/mongodb.ts:30
Options for createMongoStorage.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
client? |
MongoClient |
A pre-constructed (optionally pre-connected) MongoClient. Never closed by the driver. |
src/storage/mongodb.ts:38 |
collectionName? |
string |
Collection name (default "kv"; products pass theirs). |
src/storage/mongodb.ts:44 |
dbName? |
string |
Database name (default "xtandard"; products pass theirs). |
src/storage/mongodb.ts:42 |
subpath? |
string |
The import path to name in error messages (a missing peer, a missing client/url…), e.g. "@xtandard/webhooks/storage/mongodb" when a product re-exports this driver. Default: the kit subpath. |
src/storage/mongodb.ts:36 |
url? |
string |
Connection string; a MongoClient is created lazily when no client is given. |
src/storage/mongodb.ts:40 |