Skip to content

createMongoStorage

function createMongoStorage(options): MongoWebhooksStorage;

Defined in: src/storage/mongodb.ts:51

Create a MongoDB-backed MongoWebhooksStorage.

Parameter Type
options MongoStorageOptions

MongoWebhooksStorage

import { createMongoStorage } from "@xtandard/webhooks/storage/mongodb";
const storage = createMongoStorage({
url: "mongodb://localhost:27017",
dbName: "myapp",
collectionName: "webhooks_kv",
});