Thanks a lot. I see now.

So the "relationships" key/value is the closest thing that represents MATCH.
What does it mean to have an array of those?

Is it going to traverse any of the relations in the array or it is ordered and 
will end when it has exceeded itself.
I suppose it's just the set of relationships allowed to iterate over judging 
from the "return_filter".


On 06/12/2011, at 5:19 PM, maxdemarzi wrote:

> START s=node(123) MATCH s->[:users]->[:current]->u WHERE u.email = 'abc'
> RETURN u
> 
> something like: 
> nodes = @neo.traverse(node1,                                               
>                      "nodes",                                             
>                      {"order" => "breadth first", 
>                       "uniqueness" => "node global", 
>                       "relationships" => [{"type"=> "users", 
>                                            "direction" => "out"}, 
>                                           {"type"=> "current", 
>                                            "direction" => "out"}], 
>                        "return filter" => { 
>                                            "language" => "javascript", 
>                                            "body" => "position.length() ==
> 3 && position.lastRelationship().getType().name() == 'current' &&
> position.endNode().getProperty('email')=='abc;"}, 
>                       "depth" => 3}) 

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to