Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | expr | position} YIELD <col_name>]
[| ORDER BY <expression> [{ASC | DESC}]]
[| LIMIT [<offset>,] <number_rows>];
Expand Down Expand Up @@ -53,7 +53,7 @@ YIELD [DISTINCT] <return_list>

- `SAMPLE <sample_list>`: takes samples from the result set. For more information, see [SAMPLE](../8.clauses-and-options/sample.md).

- `LIMIT <limit_list>`: limits the number of outputs during the traversal process. For more information, see [LIMIT](../8.clauses-and-options/limit.md).
- `<limit_by_list_clause>`: limits the number of outputs during the traversal process. For more information, see [LIMIT](../8.clauses-and-options/limit.md).

- `GROUP BY`: groups the output into subgroups based on the value of the specified property. For more information, see [GROUP BY](../8.clauses-and-options/group-by.md). After grouping, you need to use `YIELD` again to define the output that needs to be returned.

Expand Down