MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / deleteMany

Function deleteMany

packages/core/fumadb/src/adapters/mongodb/query.ts:445–449  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

443 return values.map((value) => ({ _id: value[idField] }));
444 },
445 async deleteMany(table, v) {
446 const where = v.where ? buildWhere(v.where) : undefined;
447
448 await db.collection(table.names.mongodb).deleteMany(where, { session });
449 },
450 async transaction(run) {
451 const child = client.startSession();
452

Callers

nothing calls this directly

Calls 1

buildWhereFunction · 0.70

Tested by

no test coverage detected