Is it possible to add a new function in cypher?

it would be clear if anyone could answer, is there a way to add a LOOP function to cypher? I can find the cycles in the graph using a traversal. but I want to know if there is anyway to pass the result of the user-defined custom function Cypher?

+2
source share
3 answers

Not yet. However, we are talking about UDF (user-defined functions) in the upcoming version of Neo4j. You can consider clarifying your use case and asking for it as a function of Cypher itself on github issues.

+2
source

To the impossibility of UDF with Cypher, you can use unmanaged extensions .

+1
source

It seems that you are asking two different questions.

About whether it is possible to use loops in Cypher, yes, you can, FOREACH or UNWIND , depending on what you want to achieve. This is a good resource when you do not quite know what is right for your business. He compares these two and tries them with different sample queries.

Depending on whether you can write a user-defined function, with Neo4j 3.0 you can. However, they are written in Java. Take a look at this link for more details: https://neo4j.com/developer/procedures-functions/

0
source

Source: https://habr.com/ru/post/1212246/


All Articles