Skip to main content
Module

x/typeorm/src/index.ts>MongoEntityManager#delete

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

Deletes entities by a given conditions. Unlike save method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient DELETE query. Does not check if entity exist in the database.

Parameters

target: ObjectType<Entity> | EntitySchema<Entity> | string
criteria:
| string
| string[]
| number
| number[]
| Date
| Date[]
| ObjectID
| ObjectID[]
| FindConditions<Entity>

Returns

Promise<DeleteResult>