Skip to main content
Module

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

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

Creates a "mixed id map". If entity has multiple primary keys (ids) then it will return just regular id map, like what getEntityIdMap returns. But if entity has a single primary key then it will return just value of the id column of the entity, just value. This is called mixed id map.

Parameters

entity: ObjectLiteral | undefined

Returns

ObjectLiteral | undefined