Skip to main content
Module

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

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

Updates entity partially. Entity can be found by a given conditions. Unlike save method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient UPDATE query. Does not check if entity exist in the database.

Parameters

criteria:
| string
| string[]
| number
| number[]
| Date
| Date[]
| ObjectID
| ObjectID[]
| FindConditions<Entity>
partialEntity: QueryDeepPartialEntity<Entity>

Returns

Promise<UpdateResult>