4.9. Limit

4.9.1. Return first part

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

4.9.1. Return first part

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

Query

start n=(3, 4, 5, 1, 2) return n limit 3

The top three items are returned

Result

 +--------------------+
 | n                  |
 +--------------------+
 | Node[3]{name->"A"} |
 | Node[4]{name->"B"} |
 | Node[5]{name->"C"} |
 +--------------------+
 3 rows, 1 ms