Skip to content

Commit

Permalink
Update 4.schema.md (#2685)
Browse files Browse the repository at this point in the history
* Update 4.schema.md

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

---------

Co-authored-by: randomJoe211 <[email protected]>
  • Loading branch information
abby-cyber and randomJoe211 authored Apr 12, 2023
1 parent 7263ed3 commit 85f0e2f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 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,58 @@ 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 |
...
+---------------+
-->

### startNode()

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

0 comments on commit 85f0e2f

Please sign in to comment.