Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup subgraph format yield #1359

Merged
Merged
Show file tree
Hide file tree
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/16.subgraph-and-path/1.get-subgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```ngql
GET SUBGRAPH [WITH PROP] [<step_count> STEPS] FROM {<vid>, <vid>...}
[{IN | OUT | BOTH} <edge_type>, <edge_type>...]
[YIELD [VERTICES AS <vertex_alias>] [,EDGES AS <edge_alias>]];
YIELD [VERTICES AS <vertex_alias>] [, EDGES AS <edge_alias>];
```

- `WITH PROP`:展示属性。不添加本参数则隐藏属性。
Expand All @@ -18,7 +18,7 @@ GET SUBGRAPH [WITH PROP] [<step_count> STEPS] FROM {<vid>, <vid>...}

- `edge_type`:指定 Edge type。可以用`IN`、`OUT`和`BOTH`来指定起始点上该 Edge type 的方向。默认为`BOTH`。

- `YIELD`:定义需要返回的输出。可以仅返回点或边。必须设置别名。不使用`YIELD`定义输出结果时,默认返回`_vertices`和`_edges`。
- `YIELD`:定义需要返回的输出。可以仅返回点或边。必须设置别名。

!!! note

Expand Down
5 changes: 1 addition & 4 deletions docs-2.0/3.ngql-guide/7.general-query-statements/5.lookup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

!!! compatibility "历史版本兼容性"

在此前的版本中,如果用`LOOKUP`语句基于指定属性查询时该属性没有索引,系统将报错,而不会使用其它索引。
在 2.5.0 版本之前,如果用`LOOKUP`语句基于指定属性查询时该属性没有索引,系统将报错,而不会使用其它索引。

## 前提条件

Expand Down Expand Up @@ -97,7 +97,6 @@ nebula> LOOKUP ON player \
+-------------+
| "player144" |
| "player140" |
| "player111" |
+-------------+

nebula> LOOKUP ON player \
Expand All @@ -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 \
Expand Down