The LIMIT statement restricts the maximum number of records to be retained in the intermediate result or output table. A non-negative integer must be specified in the LIMIT statement.
Syntax<limit statement> ::= "LIMIT" <non-negative integer>

CREATE GRAPH myGraph { NODE Paper ({title string, score uint32, author string}), EDGE Cites ()-[{}]->() } PARTITION BY HASH(Crc32) SHARDS [1]
GQLMATCH (n:Paper) RETURN n.title LIMIT 2
Result:
| n.title |
|---|
| Efficient Graph Search |
| Optimizing Queries |
GQLMATCH (n:Paper) LIMIT 1 MATCH p = (n)->() RETURN p
Result: p

GQLMATCH (n:Paper) ORDER BY n.title DESC LIMIT 1 RETURN n.title
Result:
| n.title |
|---|
| Path Patterns |