Search for an object with a null field in neo4j

0

I am working with Neo4j, I have nodes that represent events that happen in the lives of users, such as birthdays, exams, etc., some of these events have an expiration date and others do not, I need to show the events that the date of expiration is greater than the current date or has no expiration date, that is, null , as I understand in Neo4j you can not define Properties with value null , in this case is a node that has no property, but then how can I build the query I need ?, that is, it would be something like this: match (e:Event) where e.dueAt<132456790 or e.dueAt=null return e , but this query is incorrect.

    
asked by Jaime Roman 30.04.2018 в 21:49
source

1 answer

0

Although the Neo4j server does not store the Properties with values null , if it can be filtered by them, the query would look like this: match (e:Event) where e.dueAt<132456790 or e.dueAt IS NULL return e

    
answered by 30.04.2018 / 23:22
source