Skip to main content
Module

x/typeorm/src/index.ts>RelationQueryBuilder#add

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

Adds (binds) given value to entity relation. Value can be entity, entity id or entity id map (if entity has composite ids). Value also can be array of entities, array of entity ids or array of entity id maps (if entity has composite ids). Works only for many-to-many and one-to-many relations. For many-to-one and one-to-one use #set method instead.

Parameters

value: any | any[]

Returns

Promise<void>