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

Function findMany

packages/core/fumadb/src/query/orm/index.ts:575–585  ·  view source on GitHub ↗
(name, options = {})

Source from the content-addressed store, hash-verified

573 await internal.deleteMany(table, { where: constrainedWhere });
574 },
575 async findMany(name, options = {}) {
576 const table = toTable(name);
577 let compiledOptions = buildFindOptions(table, options as FindManyOptions);
578 if (compiledOptions === false) return [];
579
580 compiledOptions = await applyReadPoliciesToOptions(table, compiledOptions, context);
581 if (compiledOptions === false) return [];
582 const records = await internal.findMany(table, compiledOptions);
583 applyDeniedJoinDefaults(records, compiledOptions);
584 return records;
585 },
586 async findFirst(name, options) {
587 const table = toTable(name);
588 let compiledOptions = buildFindOptions(table, options as FindFirstOptions);

Callers

nothing calls this directly

Calls 4

toTableFunction · 0.85
buildFindOptionsFunction · 0.85
applyDeniedJoinDefaultsFunction · 0.85

Tested by

no test coverage detected