Skip to content

Commit

Permalink
Property filerting not supported for setting multi tags for310 (#1398)
Browse files Browse the repository at this point in the history
* Update 12.query-visually.md

* property-filerting-not-supported-for-setting-multi-tags/edge types
  • Loading branch information
abby-cyber authored Jun 2, 2022
1 parent 9cd873c commit 69058b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 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 @@ -137,6 +137,13 @@ nebula> MATCH (v:player) \

To match vertices with multiple tags, use colons (:).

!!! note


It is not yet supported to add property conditions when matching vertices with multiple tags.

For example, the statement `match (v1:player:team) where v1.player.name=="Tim Duncan" return v1 limit 10;` does not work.

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

The `|` symbol can help matching multiple edge types. For example: `[e:follow|:serve]`. The English colon (:) before the first edge type cannot be omitted, but the English colon before the subsequent edge type can be omitted, such as `[e:follow|serve]`.

!!! note

It is not yet supported to add property conditions when matching data with multiple tags and multiple edge types at the same time.

For example, the statement `MATCH (v)-[e:follow|serve]->(v2) where v.player.name=="Tim Duncan" RETURN e limit 10;` does not work. `(v)` represents a vertex with all its tags.

```ngql
nebula> MATCH (v:player{name:"Tim Duncan"})-[e:follow|:serve]->(v2) \
RETURN e;
Expand Down
8 changes: 4 additions & 4 deletions docs-2.0/nebula-explorer/12.query-visually.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ On the page, the descriptions of other icons are as follows.

- **Filter**: Add one or more sets of filter conditions, including vertex properties, operators, and property values.

!!! enterpriseonly
!!! note

When setting multiple tags in the **Tag Name** dialog box, only the Nebula Graph Enterprise Edition supports setting **filter conditions** to query data.
When setting multiple tags in the **Tag Name** dialog box, it is not supported to set **filter conditions** to query data.

4. Set an edge by clicking. The descriptions configuration options are as follows.

Expand All @@ -86,9 +86,9 @@ On the page, the descriptions of other icons are as follows.

- **Filter**: Add one or more sets of filter conditions, including edge properties, operators, and property values.

!!! enterpriseonly
!!! note

When setting multiple edge types in the **Edge Type** dialog box, only the Nebula Graph Enterprise Edition supports setting **filter conditions** to query data.
When setting multiple edge types in the **Edge Type** dialog box, it is not supported to set **filter conditions** to query data.

5. After the query scenarios (pattern) is created, click ![Output](https://docs-cdn.nebula-graph.com.cn/figures/visual-nav-output.png) and select the result you want to return.

Expand Down

0 comments on commit 69058b1

Please sign in to comment.