method MemoryTenantDataStore.prototype.findById
MemoryTenantDataStore.prototype.findById<E, Id>(
tenantId: string,
entity: string,
id: Id
): Promise<E | null>

Find a single record by its identifier.

Type Parameters

Parameters

tenantId: string
entity: string
id: Id

Return Type

Promise<E | null>

Usage

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