diff --git a/docs-2.0/3.ngql-guide/16.subgraph-and-path/1.get-subgraph.md b/docs-2.0/3.ngql-guide/16.subgraph-and-path/1.get-subgraph.md index 00f98d1513a..7d594c56b8f 100644 --- a/docs-2.0/3.ngql-guide/16.subgraph-and-path/1.get-subgraph.md +++ b/docs-2.0/3.ngql-guide/16.subgraph-and-path/1.get-subgraph.md @@ -7,7 +7,7 @@ ```ngql GET SUBGRAPH [WITH PROP] [ STEPS] FROM {, ...} [{IN | OUT | BOTH} , ...] -[YIELD [VERTICES AS ] [,EDGES AS ]]; +YIELD [VERTICES AS ] [, EDGES AS ]; ``` - `WITH PROP`:展示属性。不添加本参数则隐藏属性。 @@ -18,7 +18,7 @@ GET SUBGRAPH [WITH PROP] [ STEPS] FROM {, ...} - `edge_type`:指定 Edge type。可以用`IN`、`OUT`和`BOTH`来指定起始点上该 Edge type 的方向。默认为`BOTH`。 -- `YIELD`:定义需要返回的输出。可以仅返回点或边。必须设置别名。不使用`YIELD`定义输出结果时,默认返回`_vertices`和`_edges`。 +- `YIELD`:定义需要返回的输出。可以仅返回点或边。必须设置别名。 !!! note diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/5.lookup.md b/docs-2.0/3.ngql-guide/7.general-query-statements/5.lookup.md index c054574976f..135cba75a5e 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/5.lookup.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/5.lookup.md @@ -24,7 +24,7 @@ !!! compatibility "历史版本兼容性" - 在此前的版本中,如果用`LOOKUP`语句基于指定属性查询时该属性没有索引,系统将报错,而不会使用其它索引。 + 在 2.5.0 版本之前,如果用`LOOKUP`语句基于指定属性查询时该属性没有索引,系统将报错,而不会使用其它索引。 ## 前提条件 @@ -97,7 +97,6 @@ nebula> LOOKUP ON player \ +-------------+ | "player144" | | "player140" | -| "player111" | +-------------+ nebula> LOOKUP ON player \ @@ -107,10 +106,8 @@ nebula> LOOKUP ON player \ +-------------------------+------------------------+ | properties(VERTEX).name | properties(VERTEX).age | +-------------------------+------------------------+ -| "Blake Griffin" | 30 | | "Ben Simmons" | 22 | | "Blake Griffin" | 30 | -| "Ben Simmons" | 22 | +-------------------------+------------------------+ nebula> LOOKUP ON player \