cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Querying for nodes that do not have specific property values

Hi,

I am trying to query for all nodes of a specific type that do not have a specific property value, is this possible?

MATCH (person:People)-[:NAME]->(name:Name)
WHERE name.firstName = 'Sixto' IS NULL
RETURN person 

or

MATCH (person:People)-[:NAME]->(name:Name)
WHERE NOT EXISTS((person:People)-[:NAME]->(name {firstName:'Sixto'}))
RETURN person

both examples do not work but is something like this possible?

1 ACCEPTED SOLUTION

ri8ika
Graph Voyager

Do you mean not to match?

WHERE name.firstName <> 'Sixto'

View solution in original post

1 REPLY 1

ri8ika
Graph Voyager

Do you mean not to match?

WHERE name.firstName <> 'Sixto'