method MemoryAdapter.prototype.findEntityById
MemoryAdapter.prototype.findEntityById(
entity: string,
): Promise<Record<string, unknown> | null>

Find a single entity by its primary key value.

Parameters

entity: string

Entity name

Primary key value (scalar or composite record)

Return Type

Promise<Record<string, unknown> | null>

The entity or null

Usage

import { MemoryAdapter } from "database-plugin/src/index.ts";