Hi all,
      I am new to OrientDB and using the latest 2.1 version. I try to find 
a child node with specific name with a given parent node. Here is what I 
did in my Java code


parent.query().direction(Direction.OUT).has("name", "child name").vertices
().iterator();


This query is always return empty iterator. I double checked graph, the 
given parent indeed has a child node with name property equals to "child 
name". I also try the following query

parent.query().direction(Direction.OUT).has("name", (o1, o2) -> {
    System.out.println("o1 = " + o1 + " o2 = " + o2); 
    if (o1 != null && o2 != null) {
          return o1.equals(o2);
    }


    return false;


}, "child name").vertices().iterator();



The System.out.println() will print out as follows

o1 = null o2 = "child name"
....
....

Looks like OrientDB never pass in "name" property value from each vertex.

Did I do something wrong?

Thanks,

Tai

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to