From 7c30c5c62dc13ef43abf3c2d8ed37a41df1f8b44 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Thu, 24 Jun 2021 15:36:04 +0800 Subject: [PATCH] Update 5.lookup.md --- .../3.ngql-guide/7.general-query-statements/5.lookup.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 9315a45222d..5b8b42b66f3 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 @@ -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; +-------------+ @@ -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; +------------+ @@ -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) */