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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -