neo4j/neo4j — pull request #717 by maxdemarzi (2013-04-18 04:45:08+00:00)
Title: Adding XOR Predicate

My attempt at adding the XOR Predicate to cypher.

Use case => https://github.com/maxdemarzi/neo_love/blob/master/neolove.rb#L64
I want to be able to do this:
me.orientation = person.orientation AND
(me.gender <> person.gender XOR me.orientation = "gay")

me.orientation = person.orientation AND
((me.gender <> person.gender OR me.orientation = "straight") OR
(me.gender = person.gender AND me.orientation = "gay"))