Skip to main content
Module

x/typeorm/src/index.ts>EntityMetadata#ensureEntityIdMap

Forked from https://github.com/typeorm/typeorm
Latest
method EntityMetadata.prototype.ensureEntityIdMap
Re-export
import { EntityMetadata } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Ensures that given object is an entity id map. If given id is an object then it means its already id map. If given id isn't an object then it means its a value of the id column and it creates a new id map with this value and name of the primary column.

Parameters

id: any

Returns

ObjectLiteral