Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add match clause example #2191

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -143,6 +143,19 @@ nebula> MATCH (v) \
+----------------------------------------------------+
| ("player100" :player{age: 42, name: "Tim Duncan"}) |
+----------------------------------------------------+

nebula> WITH ['Tim Duncan', 'Yao Ming'] AS names \
MATCH (v1:player)-->(v2:player) \
WHERE v1.player.name in names \
return v1, v2;
+----------------------------------------------------+----------------------------------------------------------+
| v1 | v2 |
+----------------------------------------------------+----------------------------------------------------------+
| ("player133" :player{age: 38, name: "Yao Ming"}) | ("player114" :player{age: 39, name: "Tracy McGrady"}) |
| ("player133" :player{age: 38, name: "Yao Ming"}) | ("player144" :player{age: 47, name: "Shaquille O'Neal"}) |
| ("player100" :player{age: 42, name: "Tim Duncan"}) | ("player101" :player{age: 36, name: "Tony Parker"}) |
| ("player100" :player{age: 42, name: "Tim Duncan"}) | ("player125" :player{age: 41, name: "Manu Ginobili"}) |
+----------------------------------------------------+----------------------------------------------------------+
```

### Match VIDs
Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/nebula-explorer/workflow/1.prepare-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You must prepare your environment for running a workflow, including NebulaGraph
Add the address of the NebulaGraph Analytics where the graph computing will be performed.

- Nebula Analytics Node IP address: fill in the new Analytics node IP address.
- Username: Default is `vesoft` and does not need to be changed.
- Username: The username used for password-free access to this Analytics node. The username must be consistent across all Analytics nodes.
- SSH port number: Default is `22`.
- SSH key path for passwordless auth: Used for SSH-free login between machines. Default is `~/.ssh/id_rsa`.
- Local data directory: Default is `~/analytics-data`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The synchronization works as follows:

- The machines where the listeners and drainers run must have enough disk space to store the WAL or snapshot files.

- If the target graph space in the secondary cluster has data before the synchronization starts, data conflicts or inconsistencies may happen during the synchronization. It is recommended to keep the target graph space empty.
- If the target graph space in the secondary cluster has schema or data before the synchronization starts, conflicts or inconsistencies may happen during the synchronization. It is recommended to keep the target graph space empty.

- It is recommended to use the NebulaGraph `root` user with the God privileges to perform the cluster data synchronization. The required user roles for each synchronization command are different. For details, see the **Role permission requirements** section at the end of this topic.

Expand Down