Skip to content

Commit

Permalink
Update 2.match.md (#1839)
Browse files Browse the repository at this point in the history
* Update 2.match.md

* updates

* Update docs-2.0/3.ngql-guide/7.general-query-statements/2.match.md

Co-authored-by: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com>

* Update 2.match.md

Co-authored-by: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com>
  • Loading branch information
abby-cyber and cooper-lzy authored May 26, 2022
1 parent d802c83 commit 14636a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions docs-2.0/3.ngql-guide/7.general-query-statements/2.match.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ nebula> MATCH (v:player) \

需要匹配拥有多个 Tag 的点,可以用英文冒号(:)。

!!! note

匹配多个 Tag 的点时,不支持进行属性过滤。

例如,不支持`match (v1:player:team) where v1.player.name=="Tim Duncan" return v1 limit 10;`。


```ngql
nebula> CREATE TAG actor (name string, age int);
nebula> INSERT VERTEX actor(name, age) VALUES "player100":("Tim Duncan", 42);
Expand Down Expand Up @@ -376,6 +383,12 @@ nebula> MATCH (v:player{name:"Tim Duncan"})-[e:follow{degree:95}]->(v2) \

使用`|`可以匹配多个 Edge type,例如`[e:follow|:serve]`。第一个 Edge type 前的英文冒号(:)不可省略,后续 Edge type 前的英文冒号可以省略,例如`[e:follow|serve]`

!!! note

同时匹配多个 Tag 和多个 Edge type 时,不支持进行属性过滤。

例如,不支持`MATCH (v)-[e:follow|serve]->(v2) where v.player.name=="Tim Duncan" RETURN e limit 10;`,其中`(v)`代表匹配点的所有 Tag。

```ngql
nebula> MATCH (v:player{name:"Tim Duncan"})-[e:follow|:serve]->(v2) \
RETURN e;
Expand Down
4 changes: 2 additions & 2 deletions docs-2.0/nebula-explorer/12.query-visually.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

!!! enterpriseonly

当配置多 Tag 的点时,仅 Nebula Graph 企业版支持设置**筛选条件**查询数据。
当配置多 Tag 的点时,不支持设置**筛选条件**查询数据。

4. 单击边配置过滤条件。说明如下。

Expand All @@ -83,7 +83,7 @@

!!! enterpriseonly

当配置多个 Edge Type 查询数据时,仅 Nebula Graph 企业版支持设置**筛选条件**查询数据。
当同时配置多个 Tag 和多个 Edge Type 查询数据时,不支持设置**筛选条件**查询数据。

5. 查询场景(即模式)构建完成后,单击![Output](https://docs-cdn.nebula-graph.com.cn/figures/visual-nav-output.png)并框选需要返回(RETURN)的结果。

Expand Down

0 comments on commit 14636a1

Please sign in to comment.