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

Update 5.lookup.md #648

Merged
merged 1 commit into from
Jun 24, 2021
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
8 changes: 4 additions & 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 @@ -162,7 +162,7 @@ nebula> LOOKUP ON follow WHERE follow.degree == 60 YIELD follow.degree AS Degree

nebula> INSERT VERTEX player(name,age) VALUES "player100":("Tim Duncan", 42), "player101":("Tony Parker", 36);

# 列出所有的 player. 类似于 MATCH (n:player) RETURN id(n) /*, n */
# 列出所有的 player类似于 MATCH (n:player) RETURN id(n) /*, n */

nebula> LOOKUP ON player;
+-------------+
Expand All @@ -177,9 +177,9 @@ nebula> LOOKUP ON follow WHERE follow.degree == 60 YIELD follow.degree AS Degree
- 查找Edge type为`like`的所有边的信息。

```ngql
nebula)> CREATE EDGE like(likeness int);
nebula> CREATE EDGE like(likeness int);

nebula)> CREATE EDGE INDEX like_index on like();
nebula> CREATE EDGE INDEX like_index on like();

nebula> REBUILD EDGE INDEX like_index;
+------------+
Expand All @@ -188,7 +188,7 @@ nebula> LOOKUP ON follow WHERE follow.degree == 60 YIELD follow.degree AS Degree
| 88 |
+------------+

nebula)> INSERT EDGE like(likeness) values "player100"->"player101":(95);
nebula> INSERT EDGE like(likeness) values "player100"->"player101":(95);

# 列出所有的 like 边。类似于 MATCH (s)-[e:like]->(d) RETURN id(s), rank(e), id(d) /*, type(e) */

Expand Down