Neo4j data record does not return anything

saadiiii_1-1655417915824.png

The reason for running this query is to retrieve all the records of the Crime nodes connected to junctions. But, upon execution of the query - no output was obtained : which forces me to conclude that for that junction id, there are no crime nodes that are connected. I would like to perform a an action based on some properties exposed by the crime node for many junction ids which I would have to put in a loop to run dynamically. However, if a record does not return anything, not even a or a 'null' value, how can I perform further actions?

Any leads to this would be of great help! Thank you very much!

You can use 'optional match', which will return null as values when no match is found, instead of returning no results.