I have started using neo4j-ogm 2.1.0
and I have a basic question.
I understand that we can persist or query objects to/from a graph with a fixed, declarative domain model.
My requirement is to do this using cypher instead, so that I don't have to worry about dynamic types which may not be declared in my domain model. I have already referred to Neo4j-Ogm for dynamic domain object model.
My question is, can I do something like:
Session session = sessionFactory.openSession();
Transaction transaction = session.beginTransaction();
String cypher = "CREATE (n:MyNode{name:"my name"}) RETURN n";
try {
session.execute(cypher);
}