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

Create explorer-console.md #1080

Merged
merged 1 commit into from
Feb 10, 2022
Merged
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
32 changes: 32 additions & 0 deletions docs-2.0/nebula-explorer/explorer-console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Explorer console

Explorer console allows you to enter nGQL statements and import the query results into Explorer's canvas.

!!! note

Ensure that you have selected a target graph space before using the Explorer console.

## Enter nGQL statements

1. In the left-side navigation bar, click ![console_input](figs/nav-console.png).
2. In the input box of the console page, enter nGQL statements. For more information, see [nGQL cheatsheet](../2.quick-start/6.cheatsheet-for-ngql-command.md).
3. Click the execution icon ![run](figs/console_run.png).
4. (Optional) Click ![history](figs/console_history.png) to view commands executed before.
5. (Optional) Click ![clear](figs/console_delete.png) to clear the current statement in the input box.

## nGQL statement result display

In the lower area of the console page, the query results of the executed statements are displayed.

The results are displayed in the form of a table. You can click **Export CSV File** to store the data displayed in the table to your local drive.

The time taken to execute the statement in seconds (s) is displayed at the bottom of the table.

## Import nGQL statement results to canvas

The query results can be imported to the canvas. Click **View Subgraphs**:

- **Insert After Clear**: Clears the data on the canvas and imports the data of the query results into the canvas.
- **Incremental Insertion**: Adds the data of the query results to the canvas based on the original data on the canvas. The same data will be overwritten.