Last active
December 11, 2016 20:40
-
-
Save zdebra/54c4218c51339a7f435d9229d35e34db to your computer and use it in GitHub Desktop.
neo4j java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result r4 = db.execute("MATCH (l:lorry)-->(d:delivery) OPTIONAL MATCH (d)-->(f:food {name:'avocado'}) RETURN l.driver AS driver, f.count as count"); | |
while (r4.hasNext()) { | |
Map<String, Object> row = r4.next(); | |
System.out.println("driver: "+row.get("driver") + ", avocados: " + row.get("count")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment