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

Function whereOwner

packages/core/sdk/src/executor.ts:1532–1542  ·  view source on GitHub ↗
(owner: Owner, collection: string, key: string)

Source from the content-addressed store, hash-verified

1530 );
1531
1532 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1533 const os = ownerSubject(owner);
1534 return (b: AnyCb) =>
1535 b.and(
1536 b("plugin_id", "=", input.pluginId),
1537 b("collection", "=", collection),
1538 b("key", "=", key),
1539 b("owner", "=", owner),
1540 b("subject", "=", os ? os.subject : ORG_SUBJECT),
1541 );
1542 };
1543
1544 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
1545

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected