From a4323f1aad50dceb8c377baa65432d27d90a7caf Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:19:19 +0800 Subject: [PATCH 1/3] add schema function --- .../3.ngql-guide/6.functions-and-expressions/4.schema.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md index 4938afee29c..d33687b1b43 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md @@ -19,6 +19,15 @@ Nebula Graph 支持以下 Schema 函数。 |src(edge)|返回边的起始点 ID。数据类型和点 ID 的类型保持一致。| |dst(edge)|返回边的目的点 ID。数据类型和点 ID 的类型保持一致。| |int rank(edge) | 返回边的 rank。| +|vertex | 返回点的信息。包括点 ID、Tag、属性和值。| +|edge | 返回边的信息。包括 Edge type、起始点 ID、目的点 ID、rank、属性和值。| +|vertices | 返回子图中的点的信息。详情参见[GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| +|edges | 返回子图中的边的信息。详情参见[GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| +|path | 返回路径信息。详情参见[FIND PATH](../16.subgraph-and-path/2.find-path.md)。| + +!!! note + + 由于 vertex、edge、vertices、edges、path 属于关键字,使用时需要用`AS `设置别名才能正常使用。例如`GO FROM "player100" OVER follow YIELD edge AS e;` ## openCypher 兼容语句适用 From d622e4022ebbbc40618cf8860b980b822321c404 Mon Sep 17 00:00:00 2001 From: "abby.huang" <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 7 Dec 2021 10:22:59 +0800 Subject: [PATCH 2/3] Update docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md --- docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md index d33687b1b43..dd1c41dba3d 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md @@ -27,7 +27,7 @@ Nebula Graph 支持以下 Schema 函数。 !!! note - 由于 vertex、edge、vertices、edges、path 属于关键字,使用时需要用`AS `设置别名才能正常使用。例如`GO FROM "player100" OVER follow YIELD edge AS e;` + 由于 vertex、edge、vertices、edges、path 属于关键字,使用时需要用`AS `设置别名才能正常使用。例如`GO FROM "player100" OVER follow YIELD edge AS e;`。 ## openCypher 兼容语句适用 From 51f940cb933d6a9db51c53447ee13bcb8eb7c304 Mon Sep 17 00:00:00 2001 From: "abby.huang" <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 7 Dec 2021 10:24:33 +0800 Subject: [PATCH 3/3] Update 4.schema.md --- .../3.ngql-guide/6.functions-and-expressions/4.schema.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md index dd1c41dba3d..0b4bf2f2a90 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md @@ -21,9 +21,9 @@ Nebula Graph 支持以下 Schema 函数。 |int rank(edge) | 返回边的 rank。| |vertex | 返回点的信息。包括点 ID、Tag、属性和值。| |edge | 返回边的信息。包括 Edge type、起始点 ID、目的点 ID、rank、属性和值。| -|vertices | 返回子图中的点的信息。详情参见[GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| -|edges | 返回子图中的边的信息。详情参见[GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| -|path | 返回路径信息。详情参见[FIND PATH](../16.subgraph-and-path/2.find-path.md)。| +|vertices | 返回子图中的点的信息。详情参见 [GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| +|edges | 返回子图中的边的信息。详情参见 [GET SUBGRAPH](../16.subgraph-and-path/1.get-subgraph.md)。| +|path | 返回路径信息。详情参见 [FIND PATH](../16.subgraph-and-path/2.find-path.md)。| !!! note