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

Method updateMany

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

Source from the content-addressed store, hash-verified

295 }
296
297 async updateMany<T extends object>(
298 entityName: EntityName<T>,
299 where: FilterQuery<T>,
300 data: Partial<T>,
301 ctx?: Transaction<ClientSession>,
302 upsert?: boolean,
303 upsertOptions?: UpsertOptions<T>,
304 signal?: AbortSignal,
305 ): Promise<QueryResult<T>> {
306 return this.runQuery<T>('updateMany', entityName, data, where, ctx, { upsert, upsertOptions, signal });
307 }
308
309 async bulkUpdateMany<T extends object>(
310 entityName: EntityName<T>,

Callers 4

nativeUpdateMethod · 0.80
runQueryMethod · 0.80
upMethod · 0.80
upMethod · 0.80

Calls 1

runQueryMethod · 0.95

Tested by 2

upMethod · 0.64
upMethod · 0.64