Re: [Neo4j] I need help with this cypher query

2011-12-08 Thread Andres Taylor
On Thu, Dec 8, 2011 at 12:49 AM, Michael Hunger michael.hun...@neotechnology.com wrote: 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

[Neo4j] I need help with this cypher query

2011-12-07 Thread 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:

Re: [Neo4j] I need help with this cypher query

2011-12-07 Thread Michael Hunger
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