Skip to content

Commit

Permalink
update ngql template (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Nov 18, 2022
1 parent 00032be commit 6aa992c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs-2.0/nebula-explorer/db-management/ngql-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ At the top navigation bar, click ![Template](https://docs-cdn.nebula-graph.com.c

## Use template

In addition to clicking ![console](https://docs-cdn.nebula-graph.com.cn/figures/nav-console2.png) on the template list page to automatically jump to the console and enter the template, templates can also be used on the graph exploration page. For details, see [Start querying](../graph-explorer/ex-ug-query-exploration.md).
- (Recommended) Use templates on the graph exploration page. For details, see [Start querying](../graph-explorer/ex-ug-query-exploration.md).

- Click ![console](https://docs-cdn.nebula-graph.com.cn/figures/nav-console2.png) on the template list page to automatically jump to the console and enter the template. You need to modify the parameterized text.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ The following is an example of VIDs `Kings` and `Suns`, step number `2`, and inc

You can select the created nGQL template, and set the parameter value.

![query_template](https://docs-cdn.nebula-graph.com.cn/figures/query_template_221118_en.png)

- When the returned result is vertices, they will be displayed on the canvas.
- When the returned result is not vertices, they will be displayed in table format. For example, return player name, age, etc.

Expand Down

0 comments on commit 6aa992c

Please sign in to comment.