Interesting, it should actually not even compile.

> MATCH (n:City)-[r:`NEAR`]->(m:Airport)
   WITH n, count(*) as cnt
> WHERE cnt < 5
> RETURN n

Am 20.06.2014 um 17:57 schrieb Ankur goel <[email protected]>:

> I wanted to print all nodes whose number of outgoing edges to particular node 
> type are less than 5
> 
> MATCH (n:City)-[r:`NEAR`]->(m:Airport)
> WHERE count(*) < 5
> RETURN n
> 
> This query never returns(I observed for 5-6 mins) even on a very small graph.
> Is anything I am doing wrong here
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" 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