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