And it gives me the first and last names of those who have received a notification and are also a "Contact", but I want to find the names that received a notification, but are not a name owned by a "Contact"
I tried using the WHERE NOT clause, but it didn't yield the proper results. Please help me!
MATCH
(n:Notification)-[cfn:CONTACT_FIRST_NAME]->(fn:Name),
(n)-[cln:CONTACT_LAST_NAME]->(ln:Name)
WHERE NOT (fn)<-[:HAS_FIRST_NAME]-(:Contact)-[:HAS_LAST_NAME]->(ln)
RETURN *