(name: string, argIndex: number)
| 1696 | * This is used to convert VariableRef to pathRef for path functions like nodes(), relationships(), length(). |
| 1697 | */ |
| 1698 | export 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 | } |
no test coverage detected