MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / findMany

Function findMany

packages/core/fumadb/src/convex/query.ts:47–62  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

serializeSelectFunction · 0.90
serializeWhereFunction · 0.90

Tested by

no test coverage detected