Basically I want to sort between various nodes and return one latest, whose property is true.. but if true is not present, I should get latest node having false property.
for e.g.
nodeA - > having property renamed value is true
nodeB - > having property renamed value is false
now the scenario is, there could be n number of nodes with property renamed as true and false, I want just latest one (node also have property of time in millisecond format) with property of true if not true then latest false.
is there any way to achieve this using cypher query ? Thanks