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

Update 4.schema.md #2685

Merged
merged 2 commits into from
Apr 12, 2023
Merged
Changes from 1 commit
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
54 changes: 54 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 @@ -366,6 +366,60 @@ nebula> MATCH (v:player{name:"Tim Duncan"})-[e]->() \
+-------------+
```

<!-- 方便计算下推,用于POC,暂不对外发布,无英文文档

### none_direct_src()

none_direct_src() 返回的是不指定边方向的的起点 ID,而是指定边的编码的四元组(`_src`、`_dst`、`_rank`、`_type`)中`_src`字段。

语法:`none_direct_src(<edge>)`

示例:

```ngql
nebula> MATCH (v:player)-[e:follow]->(v2) \
WHERE none_direct_src(e) \
IN ["player100", "player101"] \
RETURN v2.player.age;
+---------------+
| v2.player.age |
+---------------+
| 36 |
| 41 |
| 42 |
| 33 |
| 41 |
+---------------+


### none_direct_dst()

none_direct_dst() 返回的是不指定边方向的的终点 ID,而是指定边的编码的四元组(`_src`、`_dst`、`_rank`、`_type`)中`_dst`字段。

语法:`none_direct_dst(<edge>)`

示例:

```ngql
nebula> MATCH (v:player)-[e:follow]->(v2) \
WHERE none_direct_dst(e) \
IN ["player100", "player101"] \
RETURN v2.player.age;
+---------------+
| v2.player.age |
+---------------+
| 36 |
| 42 |
| 42 |
| 42 |
| 42 |
...
+---------------+

-->

### none
randomJoe211 marked this conversation as resolved.
Show resolved Hide resolved

### startNode()

startNode() 获取一条路径并返回它的起始点信息,包括点 ID、Tag、属性和值。
Expand Down