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

Method bulkUpdateMany

packages/mongodb/src/MongoConnection.ts:309–319  ·  view source on GitHub ↗
(
    entityName: EntityName<T>,
    where: FilterQuery<T>[],
    data: Partial<T>[],
    ctx?: Transaction<ClientSession>,
    upsert?: boolean,
    upsertOptions?: UpsertManyOptions<T>,
    signal?: AbortSignal,
  )

Source from the content-addressed store, hash-verified

307 }
308
309 async bulkUpdateMany<T extends object>(
310 entityName: EntityName<T>,
311 where: FilterQuery<T>[],
312 data: Partial<T>[],
313 ctx?: Transaction<ClientSession>,
314 upsert?: boolean,
315 upsertOptions?: UpsertManyOptions<T>,
316 signal?: AbortSignal,
317 ): Promise<QueryResult<T>> {
318 return this.runQuery<T>('bulkUpdateMany', entityName, data, where, ctx, { upsert, upsertOptions, signal });
319 }
320
321 async deleteMany<T extends object>(
322 entityName: EntityName<T>,

Callers 1

nativeUpdateManyMethod · 0.80

Calls 1

runQueryMethod · 0.95

Tested by

no test coverage detected