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

Function count

packages/core/fumadb/src/adapters/mongodb/query.ts:364–368  ·  view source on GitHub ↗
(table, { where })

Source from the content-addressed store, hash-verified

362 },
363 tables: schema.tables,
364 async count(table, { where }) {
365 return await db
366 .collection(table.names.mongodb)
367 .countDocuments(where ? buildWhere(where) : undefined, { session });
368 },
369 async findFirst(table, v) {
370 const result = await orm.findMany(table, {
371 ...v,

Callers

nothing calls this directly

Calls 1

buildWhereFunction · 0.70

Tested by

no test coverage detected