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}) 

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-What-is-this-query-in-JavaScript-REST-tp3563224p3563589.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to