(name, options)
| 402 | return records; |
| 403 | }, |
| 404 | async findFirst(name, options) { |
| 405 | const table = toTable(name); |
| 406 | let compiledOptions = buildFindOptions(table, options as FindFirstOptions); |
| 407 | if (compiledOptions === false) return null; |
| 408 | |
| 409 | compiledOptions = await applyReadPoliciesToOptions(table, compiledOptions, context); |
| 410 | if (compiledOptions === false) return null; |
| 411 | const record = await internal.findFirst(table, compiledOptions); |
| 412 | if (record) applyDeniedJoinDefaults([record], compiledOptions); |
| 413 | return record; |
| 414 | }, |
| 415 | async updateMany(name, { set, where }) { |
| 416 | const table = toTable(name); |
| 417 | let conditions = where ? buildCondition(table.columns, where) : undefined; |
nothing calls this directly
no test coverage detected