Instead of creating my Neo4j DBs using the Neo4j Desktop, I create it in a Java app from scratch. I usually have two csv files: a nodes file and a relationships file. So, I create my DBs in two steps: first I create all nodes with a Cypher query and then I create all relationships between these nodes with another Cypher query (I use the 'execute' method from the 'GraphDatabaseService' class). My problem is that now I need to create dynamic types for these relationships, so I need to use the APOC library (concretely, 'CALL apoc.merge.relationship'). I know that this library must be installed using the Neo4j Desktop, and then you can create your DB by typing a Cypher query on it. But I need to create a DB from scratch in my Java code using the 'CALL apoc.merge.relationship'.
Thank you :)