cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Conditional Cypher Query on Embedded

paulB
Node Clone

Hello,

Newly I discover apoc.when and try to use it in my project.
My project have test with using neo4jharness.
But It seem that apoc from Central Repository: org/neo4j/procedure/apoc/4.4.0.4 (maven.org) doesn't contain function documented here Conditional Cypher Execution - APOC Documentation (neo4j.com).
Any one knows where to find these functions?
Thank you for any help.

For information :

  • org.neo4j.test:neo4j-harness:4.3.6
  • org.neo4j.procedure:apoc:4.4.0.4 (all)
  • org.springframework.data:spring-data-neo4j:6.2.4
1 ACCEPTED SOLUTION

paulB
Node Clone

apoc.when is in the class cypher (even if it is not a apoc.cypher function) : neo4j-apoc-procedures/Cypher.java at b8a67385eb41190a14dcb81c50ec8a9c733aa56d · neo4j-contrib/neo4j-...
To add it to the embedded instance just add .withProcedure(apoc.cypher.Cypher.class) to the embedded instance initialisation.

View solution in original post

1 REPLY 1

paulB
Node Clone

apoc.when is in the class cypher (even if it is not a apoc.cypher function) : neo4j-apoc-procedures/Cypher.java at b8a67385eb41190a14dcb81c50ec8a9c733aa56d · neo4j-contrib/neo4j-...
To add it to the embedded instance just add .withProcedure(apoc.cypher.Cypher.class) to the embedded instance initialisation.