method MemoryAdapter.prototype.getStore
MemoryAdapter.prototype.getStore(
entity: string,
primaryKey?: string | readonly string[]
): EntityStore

Returns the internal store for an entity, creating it lazily.

Parameters

entity: string

Entity name

optional
primaryKey: string | readonly string[] = id

Primary key field(s), defaults to ['id']

Return Type

EntityStore

The entity store

Usage

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