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

Function deleteMany

packages/core/fumadb/src/adapters/prisma/query.ts:318–324  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

316 return values.map((value) => ({ _id: value[idField] }));
317 },
318 async deleteMany(table, v) {
319 await init;
320 const model = getPrismaModel(table);
321 const where = v.where ? buildWhere(v.where) : undefined;
322
323 await model.deleteMany({ where });
324 },
325 async upsert(table, { where, ...v }) {
326 await init;
327

Callers

nothing calls this directly

Calls 2

getPrismaModelFunction · 0.85
buildWhereFunction · 0.70

Tested by

no test coverage detected