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

Function whereOwner

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

Source from the content-addressed store, hash-verified

1202 );
1203
1204 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1205 const os = ownerSubject(owner);
1206 return (b: AnyCb) =>
1207 b.and(
1208 b("plugin_id", "=", input.pluginId),
1209 b("collection", "=", collection),
1210 b("key", "=", key),
1211 b("owner", "=", owner),
1212 b("subject", "=", os ? os.subject : ORG_SUBJECT),
1213 );
1214 };
1215
1216 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
1217

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected