As a follow-up to my previous question I would like to know how to use logical operators AND, OR and NOT when performing an index query.
Using the same book club database scenario what would the Cypher query look like:
- Find all readers that have read (Fiction AND Non-Fiction) OR Reference books?
- Find all readers that have read (Fiction OR Non-Fiction) AND NOT Reference books?
I'm pretty sure that those two examples should provide enough material to cover any other scenario.
EDIT: I created a Neo4j Console scenario to demonstrate this.