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

Function count

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

Source from the content-addressed store, hash-verified

19 const orm = createTransaction({
20 tables: schema.tables,
21 async count(table, v) {
22 return (await client.query(api.queryHandler, {
23 tableName: table.ormName,
24 query: {
25 type: "count",
26 where: v.where ? serializeWhere(v.where) : undefined,
27 },
28 secret,
29 })) as number;
30 },
31 async findFirst(table, v) {
32 const result = await client.query(api.queryHandler, {
33 tableName: table.ormName,

Callers

nothing calls this directly

Calls 1

serializeWhereFunction · 0.90

Tested by

no test coverage detected