createMongoStorage
function createMongoStorage(options): MongoWebhooksStorage;Defined in: src/storage/mongodb.ts:51
Create a MongoDB-backed MongoWebhooksStorage.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
MongoStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createMongoStorage } from "@xtandard/webhooks/storage/mongodb";
const storage = createMongoStorage({ url: "mongodb://localhost:27017", dbName: "myapp", collectionName: "webhooks_kv",});