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

Function findFirst

packages/core/fumadb/src/adapters/mongodb/query.ts:369–376  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected