How do I programmatically validate a cypher query in Neo4j?

Tags: java neo4j cypher

Is there any way to use the Java API to validate a Neo4J Cypher query programmatically?

By : darkfrog


Based upon this thread, the compilation of cypher is handled by scala:

The link on that thread is out of date, so heres the latest on github:

Beyond that you're on your own - @stdob comment about using EXPLAIN is still your best bet in my opinion (and should be submitted as an answer)

$(this) is JQuery context, and you are inside javascript function. You can change the click button to JQuery to use it:

var test; 
    test = $(this).attr('id');
<script src=""></script>
<button id="btnTeste">

If I am reading this correctly, Message would contain a List<MessageUser>.

If that's the case then this should get you close:

var List<Message> messages = 
    ( from m 
      in db.Messages 
          m.UserID == userid || m.MessageUsers.Any(mu => mu.UserID == userID) 
      select m).ToList();
By : Sam Axe

This video can help you solving your question :)
By: admin