With Cypher, querying data is like creating Ascii Art to navigate through information. While fun and powerful, sometimes the pesky execution engine doesn’t appreciate the beauty of what you’ve typed. In this blog post, Rickard Öberg presents his implementation of a DSL to safely construct Cypher queries in Java.

For example:

start( node( "n", 3, 1 ) ).
where( prop( "n.age" ).lt( 30 ).and( prop( "n.name" ).eq( "Tobias" )).
or(not(prop("n.name").eq("Tobias" )))).
returns( nodes( "n" ) )

For more, read on at Rickard’s blog.

Cheers,
Andreas

 

Keywords:  


1 Comment

Anonymous says:

The really interesting thing is how to build native Java "queries" for Neo4J, without any cypher usage at all.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Popular Graph Topics

Archives

Have a Graph Question?

Reach out and connect with the Neo4j staff.
Stackoverflow
Contact Us