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

Function findMany

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

Source from the content-addressed store, hash-verified

391 await internal.deleteMany(table, { where: constrainedWhere });
392 },
393 async findMany(name, options = {}) {
394 const table = toTable(name);
395 let compiledOptions = buildFindOptions(table, options as FindManyOptions);
396 if (compiledOptions === false) return [];
397
398 compiledOptions = await applyReadPoliciesToOptions(table, compiledOptions, context);
399 if (compiledOptions === false) return [];
400 const records = await internal.findMany(table, compiledOptions);
401 applyDeniedJoinDefaults(records, compiledOptions);
402 return records;
403 },
404 async findFirst(name, options) {
405 const table = toTable(name);
406 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