(name, options = {})
| 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); |
nothing calls this directly
no test coverage detected