14.19. Limit

14.19.1. Return first part

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

Figure 14.8. Graph


14.19.1. Return first part

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

Query. 

MATCH n
RETURN n
LIMIT 3

The top three items are returned by the example query.

Result

n
3 rows
0 ms

Node[1]{name:"D"}

Node[2]{name:"E"}

Node[3]{name:"A"}