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

Function upsertBob

packages/core/fumadb/test/query/query.test.ts:126–131  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

124 const getBob = () =>
125 orm.findFirst("users", { where: (b) => b("id", "=", "bob") });
126 const upsertBob = (v: string) =>
127 orm.upsert("users", {
128 where: (b) => b("id", "=", "bob"),
129 create: { id: "bob", name: v },
130 update: { name: v },
131 });
132
133 lines.push("upsert bob: should be created as sad");
134 await upsertBob("Bob is sad");

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected