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 -

reflection - How to access the object-members of an object declaration in kotlin -

python - TypeError('Unrecognized keyword arguments: ' + str(kwargs)) # Validate user data -