New WITH - syntax

14 views
Skip to first unread message

Peter Neubauer

unread,
Oct 11, 2012, 4:53:14 AM10/11/12
to Neo4j User
Hi there,
Wes Freeman just contributed some nice additions to the WITH Cypher
capabilities that let you limit and order the amount of results passed
to the next query:

START n=node(3)
MATCH n--m
WITH m
ORDER BY m.name desc
LIMIT 1
MATCH m--o
RETURN o.name


http://docs.neo4j.org/chunked/snapshot/query-with.html#with-sort-results-before-using-collect-on-them

Thank you Wes!

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html
Reply all
Reply to author
Forward
0 new messages