October 2017
Beginner to intermediate
316 pages
8h
English
In either case, we cannot be sure that we can now make the assumption that the hasRestaurant property is present in all the Tower nodes. Fortunately, Cypher gets us covered as it is possible to find the unfinished nodes, thanks to NOT exists(node.property), like in this query:
MATCH (n:Tower) WHERE NOT exists(n.hasRestaurant)RETURN n
Then, it is up to you to flag the nodes as dirty (using a label of your choice), should you decide to exclude them from your queries via this label.
From the nodes, you can find a reason why the value is not set and improve your computation, which I advise you to code as a custom function (or procedure):
Read now
Unlock full access