(table, v)
| 45 | return null; |
| 46 | }, |
| 47 | async findMany(table, v) { |
| 48 | const result = await client.query(api.queryHandler, { |
| 49 | tableName: table.ormName, |
| 50 | query: { |
| 51 | type: "find", |
| 52 | select: serializeSelect(table, v.select), |
| 53 | where: v.where ? serializeWhere(v.where) : undefined, |
| 54 | limit: v.limit, |
| 55 | offset: v.offset, |
| 56 | }, |
| 57 | secret, |
| 58 | }); |
| 59 | |
| 60 | if (Array.isArray(result)) return result as Record<string, unknown>[]; |
| 61 | return []; |
| 62 | }, |
| 63 | async updateMany(table, v) { |
| 64 | await client.mutation(api.mutationHandler, { |
| 65 | tableName: table.ormName, |
nothing calls this directly
no test coverage detected