I would recommend the following

START c=...
MATCH c-[rel1:MyRel]->a, c-[rel2:MyRel]->b
WHERE rel2 is null
RETURN c

even though it seems it little strange



Am 29.11.2011 03:03, schrieb KanTube:
> while not ideal you could do
>
> START
> a=node:node_auto_index(NodeType="A"),b=node:node_auto_index(NodeType="B")
> MATCH a-[:MyRel]->c<-[r?:MyRel]-b
> RETURN c, count(r)
>
> and in your code you could filter for count(r) = 0
>
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/cypher-question-subqueries-possible-tp3543685p3544033.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
>

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

Reply via email to