(table, v)
| 367 | .countDocuments(where ? buildWhere(where) : undefined, { session }); |
| 368 | }, |
| 369 | async findFirst(table, v) { |
| 370 | const result = await orm.findMany(table, { |
| 371 | ...v, |
| 372 | limit: 1, |
| 373 | }); |
| 374 | |
| 375 | return result[0] ?? null; |
| 376 | }, |
| 377 | async findMany(table, v) { |
| 378 | const query = db |
| 379 | .collection(table.names.mongodb) |
nothing calls this directly
no outgoing calls
no test coverage detected