10.3. Limit

LIMIT constrains the number of rows in the output.

Figure 10.3. Graph

Return first part

To return a subset of the result, starting from the top, use this syntax:

Parameters 

{ }

Query 

MATCH (n)
RETURN n
ORDER BY n.name
LIMIT 3

The top three items are returned by the example query.

Result

n
3 rows

Node[2]{name:"A"}

Node[3]{name:"B"}

Node[4]{name:"C"}