Hey André, you already almost did it, just copying your parts together
start shop=node(123), me=node(321) match shop-[:sell]->item<-[:like]-user,item<-[r1?:like]-me where r1 is null return item the missing part was the optional relationship for r1, which allows it to be null and you check for those results, where no relationship between me and item exists. HTH Michael Am 07.12.2011 um 23:28 schrieb andremetzen: > I'm trying to create a cypher query. > > I have a shop=node(123) and me=node(321) start nodes. > > I want all items that shop-[:sell]->item<-[:like]-user but does not exist > any r1 me-[r1:like]->item. > > It's that possible with cypher? > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/I-need-help-with-this-cypher-query-tp3568845p3568845.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register > and consider posting at https://groups.google.com/forum/#!forum/neo4j > > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user