Skip to main content
Module

x/typeorm/src/index.ts>Repository#create

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

Creates a new entity instance.

Returns

Entity

Creates a new entities and copies all entity properties from given objects into their new entities. Note that it copies only properties that present in entity schema.

Parameters

entityLikeArray: DeepPartial<Entity>[]

Returns

Entity[]

Creates a new entity instance and copies all entity properties from this object into a new entity. Note that it copies only properties that present in entity schema.

Parameters

entityLike: DeepPartial<Entity>

Returns

Entity