From a9841f1a37e364d0cb487fe2a606b981c903f296 Mon Sep 17 00:00:00 2001 From: Amber1990Zhang <1345783682@qq.com> Date: Fri, 3 Jul 2020 10:37:50 +0800 Subject: [PATCH 1/2] go-0-step --- .../2.data-query-and-manipulation-statements/go-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md index 851c2dd6396..5e1641d2493 100644 --- a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md +++ b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md @@ -24,7 +24,7 @@ It indicates to traverse in a graph with specific filters (the `WHERE` clause), [AS ] [, [AS ] ...] ``` -* ` STEPS` specifies the N query hops. If not specified, the default traversal is one hop. +* ` STEPS` specifies the N query hops. If not specified, the default traversal is one hop. When `N` is zero, **Nebula Graph** will not traverse any edges, so the returned result is empty. * `M TO N STEPS` traverses from M to N hops. * `` is either a list of node's vid separated by comma(,), or a special place holder `$-.id` (refer `PIPE` syntax). * ``is a list of edge types which graph traversal can go through. From a69cabb79b8d0974b3ec885d40ca9d5306be96e9 Mon Sep 17 00:00:00 2001 From: Amber1990Zhang <1345783682@qq.com> Date: Fri, 3 Jul 2020 10:53:45 +0800 Subject: [PATCH 2/2] laura --- .../2.data-query-and-manipulation-statements/go-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md index 5e1641d2493..750c0b616e1 100644 --- a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md +++ b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax.md @@ -25,7 +25,7 @@ It indicates to traverse in a graph with specific filters (the `WHERE` clause), ``` * ` STEPS` specifies the N query hops. If not specified, the default traversal is one hop. When `N` is zero, **Nebula Graph** will not traverse any edges, so the returned result is empty. -* `M TO N STEPS` traverses from M to N hops. +* `M TO N STEPS` traverses from M to N hops. When `M` is zero, the return result is the same to `M` is one. That is, the return result of `GO 0 TO 2` and `GO 1 TO 2` are the same. * `` is either a list of node's vid separated by comma(,), or a special place holder `$-.id` (refer `PIPE` syntax). * ``is a list of edge types which graph traversal can go through. * `WHERE ` extracts only those results that fulfill the specified conditions. WHERE syntax can be conditions for src-vertex, the edges, and dst-vertex. The logical AND, OR, NOT are also supported. See [WHERE Syntax](where-syntax.md) for more information.