method ITenantDataStore.create
ITenantDataStore.create<E>(
tenantId: string,
entity: string,
data: Readonly<Record<string, unknown>>
): Promise<E>

Create a new record; returns the stored entity including its id.

Type Parameters

Parameters

tenantId: string
entity: string
data: Readonly<Record<string, unknown>>

Return Type

Promise<E>

Usage

import { type ITenantDataStore } from "multi-tenancy-plugin/src/index.ts";