Skip to main content
Module

x/typeorm/src/index.ts>EntityManager#hasId

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

Checks if entity has an id.

Parameters

entity: any

Returns

boolean

Checks if entity of given schema name has an id.

Parameters

target: Function | string
entity: any

Returns

boolean