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

update ngql template #1763

Merged
merged 1 commit into from
Nov 18, 2022
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
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