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

Function whereFor

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

Source from the content-addressed store, hash-verified

917
918 const whereFor =
919 (collection: string, key?: string): CoreWhere =>
920 (b: AnyCb) =>
921 b.and(
922 b("plugin_id", "=", input.pluginId),
923 b("collection", "=", collection),
924 key === undefined ? true : b("key", "=", key),
925 );
926
927 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
928 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