Try replacing count(*) with count(r).

~A


On Fri, Jun 20, 2014 at 11:57 AM, Ankur goel <[email protected]> wrote:

> 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