MCPcopy Create free account
hub / github.com/codemix/graph / evaluateFunction

Function evaluateFunction

packages/graph/src/FunctionRegistry.ts:1670–1677  ·  view source on GitHub ↗
(
  name: string,
  args: readonly unknown[],
  path: TraversalPath<any, any, any>,
  distinct = false,
)

Source from the content-addressed store, hash-verified

1668 * @param distinct Whether DISTINCT was specified
1669 */
1670export function evaluateFunction(
1671 name: string,
1672 args: readonly unknown[],
1673 path: TraversalPath<any, any, any>,
1674 distinct = false,
1675): unknown {
1676 return functionRegistry.invoke({ name, args, path, distinct });
1677}
1678
1679/**
1680 * Check if a function name is a known built-in function.

Callers 8

resolveConditionValueFunction · 0.85
traverseMethod · 0.85
traverseMethod · 0.85
projectPathMethod · 0.85
computeAggregatesMethod · 0.85
resolveListExpressionMethod · 0.85

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected