Skip to content

Commit

Permalink
Update limit syntax in GO (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomJoe211 committed Jan 17, 2022
1 parent b0b8bca commit e9bc1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GO [[<M> TO] <N> STEPS ] FROM <vertex_list>
OVER <edge_type_list> [{REVERSELY | BIDIRECT}]
[ WHERE <conditions> ]
YIELD [DISTINCT] <return_list>
[{ SAMPLE <sample_list> | LIMIT <limit_list> }]
[{ SAMPLE <sample_list> | <limit_by_list_clause> }]
[| GROUP BY {<col_name> | expression> | <position>} YIELD <col_name>]
[| ORDER BY <expression> [{ASC | DESC}]]
[| LIMIT [<offset>,] <number_rows>];
Expand Down Expand Up @@ -49,7 +49,7 @@ YIELD [DISTINCT] <return_list>

- `SAMPLE <sample_list>`:用于在结果集中取样。详情参见 [SAMPLE](../8.clauses-and-options/sample.md)

- `LIMIT <limit_list>`:用于在遍历过程中逐步限制输出数量。详情参见 [LIMIT](../8.clauses-and-options/limit.md)
- `limit_by_list_clause`:用于在遍历过程中逐步限制输出数量。详情参见 [LIMIT](../8.clauses-and-options/limit.md)

- `GROUP BY`:根据指定属性的值将输出分组。详情参见 [GROUP BY](../8.clauses-and-options/group-by.md)。分组后需要再次使用`YIELD`定义需要返回的输出。

Expand Down

0 comments on commit e9bc1fa

Please sign in to comment.