16.13. Limit

16.13.1. Return first part

LIMIT enables the return of only subsets of the total result.

Graph

cypher-limit-graph.svg

16.13.1. Return first part

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

Result

n
3 rows, 0 ms

Node[3]{name->"A"}

Node[4]{name->"B"}

Node[5]{name->"C"}