Skip to content

Commit

Permalink
Update 4.schema.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber committed Mar 27, 2023
1 parent 14124ab commit b6911c4
Showing 1 changed file with 54 additions and 0 deletions.
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

### startNode()

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

0 comments on commit b6911c4

Please sign in to comment.