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

add schema function #1302

Merged
merged 3 commits into from
Dec 8, 2021
Merged
Changes from 2 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
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