Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 21, 2025
1 parent 72824b1 commit 73c9817
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions demos/guru_scripts/docker/tutorial/4.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1385,14 +1385,18 @@ As illustrated in above figure, we can use `CREATE` statements to create the `Ac
To enter the global scope, type the `use global` command in the GSQL shell. Next, use the `ls` command to list all the schema objects under this scope.

```python
GSQL> USE GLOBAL
GSQL> ls
> USE GLOBAL
> ls
```
![Graph Scope](./GlobalLocal.jpg)
The figure above shows that the `financialGraph` is composed of global scope schema objects such as `Account`, `City`, `Phone`, `isLocatedIn`, and `hasPhone` etc. The `privateGraph` also uses the global schema object `Phone`. Thus, both the `financialGraph` and the `privateGraph` share the `Phone` schema object. Additionally, the `privateGraph` has its own private schema objects— `Loan` and `Person` vertex objects.

To enter a graph scope, type the `USE GRAPH` graphName command in the GSQL shell. Then, use the `ls` command to list all the schema objects under this graph scope.

```python
> USE GRAPH financialGraph
> ls
```

[Go back to top](#top)
# Support
Expand Down

0 comments on commit 73c9817

Please sign in to comment.