Hello,
I want to migrate to the new declareFunction
as asFunction
is deprecated, but I have a hard time defining a custom function with multiple parameters.
The documentation and testcases only contains a single parameter with the name input
.
Every other parameter name seem to fail and extra parameters seem to be ignored.
I tried this query:
CALL apoc.custom.declareFunction('foobar(input::NODE, y::NODE) ::(NODE)',
'MATCH (n) RETURN n limit 1');
The declaration looks successful but when looking at the defined function (call apoc.custom.list
) it looks like this:
"function" "foobar" "" null "MATCH (n) RETURN n limit 1" [["input", "node"]] "node" false
Any ideas how to solve this?
Cheers,
Ron