MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / deleteMany

Method deleteMany

packages/mongodb/src/MongoConnection.ts:321–328  ·  view source on GitHub ↗
(
    entityName: EntityName<T>,
    where: FilterQuery<T>,
    ctx?: Transaction<ClientSession>,
    signal?: AbortSignal,
  )

Source from the content-addressed store, hash-verified

319 }
320
321 async deleteMany<T extends object>(
322 entityName: EntityName<T>,
323 where: FilterQuery<T>,
324 ctx?: Transaction<ClientSession>,
325 signal?: AbortSignal,
326 ): Promise<QueryResult<T>> {
327 return this.runQuery<T>('deleteMany', entityName, undefined, where, ctx, { signal });
328 }
329
330 async aggregate<T extends object = any>(
331 entityName: EntityName<T>,

Callers 2

nativeDeleteMethod · 0.80
upMethod · 0.80

Calls 1

runQueryMethod · 0.95

Tested by 1

upMethod · 0.64