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

Function matchesWhereOperators

packages/core/sdk/src/executor.ts:1101–1109  ·  view source on GitHub ↗
(
  value: unknown,
  filter: Readonly<Record<string, unknown>>,
)

Source from the content-addressed store, hash-verified

1099};
1100
1101const matchesWhereOperators = (
1102 value: unknown,
1103 filter: Readonly<Record<string, unknown>>,
1104): boolean => {
1105 for (const [operator, operand] of Object.entries(filter)) {
1106 if (!matchesWhereOperator(operator, value, operand)) return false;
1107 }
1108 return true;
1109};
1110
1111const rowMatchesPluginStorageWhere = (
1112 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected