(name, options)
| 584 | return records; |
| 585 | }, |
| 586 | async findFirst(name, options) { |
| 587 | const table = toTable(name); |
| 588 | let compiledOptions = buildFindOptions(table, options as FindFirstOptions); |
| 589 | if (compiledOptions === false) return null; |
| 590 | |
| 591 | compiledOptions = await applyReadPoliciesToOptions(table, compiledOptions, context); |
| 592 | if (compiledOptions === false) return null; |
| 593 | const record = await internal.findFirst(table, compiledOptions); |
| 594 | if (record) applyDeniedJoinDefaults([record], compiledOptions); |
| 595 | return record; |
| 596 | }, |
| 597 | async updateMany(name, { set, where }) { |
| 598 | const table = toTable(name); |
| 599 | let conditions = where ? buildCondition(table.columns, where) : undefined; |
nothing calls this directly
no test coverage detected