Normally, a query should look like
start john=node(2) match john-[r:friend]->friend where
r.age=max(r.age) return friend
see http://docs.neo4j.org/chunked/snapshot/query-aggregation.html#aggregation-max
(and the live console button in there)
However, this exhibited a bug, that is going to be fixed soon,
https://github.com/neo4j/community/issues/446 . Keep track of that
one!
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
start n=node(1) match n-[f:friend]->m with n,max(f.age) as age match
n-[f:friend]->m where f.age = age return m
tracked in the same issue.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
https://github.com/neo4j/community/issues/446
You can try it live with the neo4j-console: http://tinyurl.com/6tk7fdx
Thanks to Andrés for taking care of it.
Cheers
Michael