fromConnString(
connString: string,
params: Omit<MongoDBStoreParams, "client">
): Promise<MongoDBStore| Name | Type | Description |
|---|---|---|
connString* | string | |
params | Omit<MongoDBStoreParams, "client"> |
Factory method to create a MongoDBStore from a connection string. Automatically creates and connects a MongoDB client, and calls start to ensure required indexes exist.
MongoDB connection string
Store configuration