Skip to content

basalt / webhooks-prisma/src / prismaWebhookStore

Function: prismaWebhookStore() ​

> prismaWebhookStore(client, options?): PrismaWebhooksStores

Defined in: webhooks-prisma/src/index.ts:210

Wire the webhook store to your Prisma client, named to drop straight into webhooksPlugin:

ts
const webhooks = prismaWebhookStore(prisma) // on MySQL: prismaWebhookStore(prisma, { columnLimits: 'mysql' })
webhooksPlugin({ store: webhooks.store, secret: process.env.WEBHOOK_SECRET })

Parameters ​

client ​

PrismaWebhooksClient

options? ​

PrismaWebhookStoreOptions = {}

Returns ​

PrismaWebhooksStores

Released under the MIT License.