In this code, how could I iterate over all the nodes in the ExecutionResult result?
CypherParser parser = new CypherParser();
ExecutionEngine engine = new Ex
In newer versions of the java driver one can traverse like this.
Driver driver = GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("neo4j", "neo4j"));
Session session = driver.session();
List teams = new ArrayList<>();
StatementResult cursor = session.run("match (l:League)<-[]-(t:Team) return t.short_name");
while (cursor.hasNext()) {
teams.add(cursor.next().get(cursor.keys().get(0)).toString());
}
session.close();
driver.close();