Skip to content

Commit

Permalink
add schema function (#1302)
Browse files Browse the repository at this point in the history
* add schema function

* Update docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md

* Update 4.schema.md

Co-authored-by: abby.huang <78209557+abby-cyber@users.noreply.github.com>
  • Loading branch information
cooper-lzy and abby-cyber authored Dec 8, 2021
1 parent 2d12989 commit be636e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs-2.0/3.ngql-guide/6.functions-and-expressions/4.schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <alias>`设置别名才能正常使用。例如`GO FROM "player100" OVER follow YIELD edge AS e;`。

## openCypher 兼容语句适用

Expand Down

0 comments on commit be636e6

Please sign in to comment.