method MemoryTenantDataStore.prototype.update
MemoryTenantDataStore.prototype.update<E, Id>(
tenantId: string,
entity: string,
id: Id,
data: Readonly<Record<string, unknown>>
): Promise<E | null>

Update an existing record; returns null when the id is unknown.

Type Parameters

Parameters

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

Return Type

Promise<E | null>

Usage

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