java - How to find nodes with subset of Labels in Neo4j Embeded -


i'm using java api , i'm looking find nodes subset of labels. in cypher, use query: match(n) n:label1 or n:label2 return n so, there method in api that?

thank you

you can run cypher-query embedded, why dance ?

try (     transaction vtx = graphdb.begintx();     result vresult = graphdb.execute("your cypher query here"); ) {      while (vresult.hasnext()) {         map<string, object> vrecord = vresult.next();          // process vrecord here     }     vresult.close();     vtx.success(); } 

hope helps.

regards, tom


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -