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
Post a Comment