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

Function whereFor

packages/core/sdk/src/executor.ts:1144–1150  ·  view source on GitHub ↗
(collection: string, key?: string)

Source from the content-addressed store, hash-verified

1142
1143 const whereFor =
1144 (collection: string, key?: string): CoreWhere =>
1145 (b: AnyCb) =>
1146 b.and(
1147 b("plugin_id", "=", input.pluginId),
1148 b("collection", "=", collection),
1149 key === undefined ? true : b("key", "=", key),
1150 );
1151
1152 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1153 const os = ownerSubject(owner);

Callers 3

getVisibleFunction · 0.85
queryCollectionFunction · 0.85
makePluginStorageFacadeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected