LIMIT
enables the return of only subsets of the total result.
To return a subset of the result, starting from the top, use this syntax:
Query.
START n=node(3, 4, 5, 1, 2) RETURN n LIMIT 3
The top three items are returned by the example query.
Try this query live. (1) {"name":"D"} (2) {"name":"E"} (3) {"name":"A"} (4) {"name":"B"} (5) {"name":"C"} (3)-[:KNOWS]->(4) {} (3)-[:KNOWS]->(5) {} (3)-[:KNOWS]->(1) {} (3)-[:KNOWS]->(2) {} start n=node(3, 4, 5, 1, 2) return n limit 3
Copyright © 2013 Neo Technology