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

Function one

packages/core/fumadb/src/schema/create.ts:547–563  ·  view source on GitHub ↗
(another, ...on)

Source from the content-addressed store, hash-verified

545
546 return {
547 one(another, ...on) {
548 if (on.length > 0) {
549 const init = new ExplicitRelationInit(
550 "one",
551 tables[another],
552 referencer
553 );
554 init.on = on as [string, string][];
555 return init;
556 }
557
558 return new ImplicitRelationInit(
559 "one",
560 tables[another],
561 referencer
562 ) as any;
563 },
564 many(another) {
565 return new ImplicitRelationInit("many", tables[another], referencer);
566 },

Callers 10

generate.test.tsFile · 0.85
cli.tsFile · 0.85
variants.schema.tsFile · 0.85
query.schema.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected