I suspect that I'm just asking a basic question in a new and less intelligent way, but is there a way of getting just the top/bottom node by value without going through an ORDER BY, collect()[..1], UNWIND? It just feels very long-winded, and something that is in some APOC procedure that I don't know about.
With something like this:
(a:SomeNode)-[:SOME_LINK]->(b:OtherNodes)
I would like to walk out of this somehow with a stream of (for example) a, "the b with the latest date in field x".
I hope that question made sense. I am pretty sure I can (and probably should for the practice) do it myself in APOC, but it seems like a pattern that has probably been explored a million times before.
Thanks,
Dave