diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/6.list.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/6.list.md index a233c170b7..454a82716c 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/6.list.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/6.list.md @@ -142,8 +142,8 @@ nebula> RETURN reduce(totalNum = -4 * 5, n IN [1, 2] | totalNum + n * 2) AS r; +-----+ nebula> MATCH p = (n:player{name:"LeBron James"})<-[:follow]-(m) \ - RETURN nodes(p)[0].age AS src1, nodes(p)[1].age AS dst2, \ - reduce(totalAge = 100, n IN nodes(p) | totalAge + n.age) AS sum; + RETURN nodes(p)[0].player.age AS src1, nodes(p)[1].player.age AS dst2, \ + reduce(totalAge = 100, n IN nodes(p) | totalAge + n.player.age) AS sum; +------+------+-----+ | src1 | dst2 | sum | +------+------+-----+ diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/8.predicate.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/8.predicate.md index 545a879d4a..2326bc3881 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/8.predicate.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/8.predicate.md @@ -62,8 +62,8 @@ nebula> WITH [1, 2, 3, 4, 5, NULL] AS a \ +-------------------------+ nebula> MATCH p = (n:player{name:"LeBron James"})<-[:follow]-(m) \ - RETURN nodes(p)[0].name AS n1, nodes(p)[1].name AS n2, \ - all(n IN nodes(p) WHERE n.name NOT STARTS WITH "D") AS b; + RETURN nodes(p)[0].player.name AS n1, nodes(p)[1].player.name AS n2, \ + all(n IN nodes(p) WHERE n.player.name NOT STARTS WITH "D") AS b; +----------------+-------------------+-------+ | n1 | n2 | b | +----------------+-------------------+-------+ @@ -76,7 +76,7 @@ nebula> MATCH p = (n:player{name:"LeBron James"})<-[:follow]-(m) \ +----------------+-------------------+-------+ nebula> MATCH p = (n:player{name:"LeBron James"})-[:follow]->(m) \ - RETURN single(n IN nodes(p) WHERE n.age > 40) AS b; + RETURN single(n IN nodes(p) WHERE n.player.age > 40) AS b; +------+ | b | +------+ diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/4.show-create-space.md b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/4.show-create-space.md index 041b4a7ae8..c82ad55792 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/4.show-create-space.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/4.show-create-space.md @@ -14,9 +14,9 @@ SHOW CREATE SPACE ; ```ngql nebula> SHOW CREATE SPACE basketballplayer; -+--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Space | Create Space | -+--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| "basketballplayer" | "CREATE SPACE `basketballplayer` (partition_num = 10, replica_factor = 1, charset = utf8, collate = utf8_bin, vid_type = FIXED_STRING(32), atomic_edge = false)" | -+--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++--------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ +| Space | Create Space | ++--------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ +| "basketballplayer" | "CREATE SPACE `basketballplayer` (partition_num = 10, replica_factor = 1, charset = utf8, collate = utf8_bin, vid_type = FIXED_STRING(32))" | ++--------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ ``` diff --git a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md index 9b2a98d6ed..97b7afb66e 100644 --- a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md +++ b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md @@ -85,11 +85,11 @@ nebula> CREATE SPACE IF NOT EXISTS my_space_3 (partition_num=15, replica_factor= # 克隆图空间。 nebula> CREATE SPACE IF NOT EXISTS my_space_4 as my_space_3; nebula> SHOW CREATE SPACE my_space_4; -+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Space | Create Space | -+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| "my_space_4" | "CREATE SPACE `my_space_4` (partition_num = 15, replica_factor = 1, charset = utf8, collate = utf8_bin, vid_type = FIXED_STRING(30), atomic_edge = false) ON default_zone_127.0.0.1_9779 comment = '测试图空间'" | -+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Space | Create Space | ++--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| "my_space_4" | "CREATE SPACE `my_space_4` (partition_num = 15, replica_factor = 1, charset = utf8, collate = utf8_bin, vid_type = FIXED_STRING(30)) comment = '测试图空间'" | ++--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ ``` !!! caution