Skip to content

Commit

Permalink
Add example for getting vertex/edge without specifying tag/edge type (#…
Browse files Browse the repository at this point in the history
…2342)

* add-example-for-getting-vertex/edge-without-specifying-tag/edge-type

* Update 6.cheatsheet-for-ngql-command.md

* Update 6.cheatsheet-for-ngql-command.md

* Update 2.match.md
  • Loading branch information
abby-cyber authored Nov 23, 2022
1 parent b8dff83 commit 144cf43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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 @@ -195,6 +195,11 @@ nebula> MATCH (v) \
WITH v, properties(v) as props, keys(properties(v)) as kk \
LIMIT 10000 WHERE [i in kk where props[i] == "Tim Duncan"] \
RETURN v;
+----------------------------------------------------+
| v |
+----------------------------------------------------+
| ("player100" :player{age: 42, name: "Tim Duncan"}) |
+----------------------------------------------------+
```
### 匹配点 ID

Expand Down Expand Up @@ -391,6 +396,15 @@ nebula> MATCH ()-[e]->() \
WITH e, properties(e) as props, keys(properties(e)) as kk \
LIMIT 10000 WHERE [i in kk where props[i] == 90] \
RETURN e;
+----------------------------------------------------+
| e |
+----------------------------------------------------+
| [:follow "player125"->"player100" @0 {degree: 90}] |
| [:follow "player140"->"player114" @0 {degree: 90}] |
| [:follow "player133"->"player144" @0 {degree: 90}] |
| [:follow "player133"->"player114" @0 {degree: 90}] |
...
+----------------------------------------------------+
```

### 匹配多个 Edge type
Expand Down

0 comments on commit 144cf43

Please sign in to comment.