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

Function functionArgExpectsPath

packages/graph/src/FunctionRegistry.ts:1698–1704  ·  view source on GitHub ↗
(name: string, argIndex: number)

Source from the content-addressed store, hash-verified

1696 * This is used to convert VariableRef to pathRef for path functions like nodes(), relationships(), length().
1697 */
1698export function functionArgExpectsPath(name: string, argIndex: number): boolean {
1699 const def = functionRegistry.get(name);
1700 if (!def) return false;
1701 const argSpec = def.args[argIndex];
1702 if (!argSpec) return false;
1703 return argSpec.types?.includes("path") ?? false;
1704}

Callers 2

convertConditionValueFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected