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.
fromConnString(
connString: string,
params: Omit<MongoDBStoreParams, "client">
): Promise<MongoDBStore>| Name | Type | Description |
|---|---|---|
connString* | string | MongoDB connection string |
params | Omit<MongoDBStoreParams, "client"> | Store configuration |