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

Easier to fetch tag/edge_type comment #4461

Open
wey-gu opened this issue Jul 26, 2022 · 0 comments
Open

Easier to fetch tag/edge_type comment #4461

wey-gu opened this issue Jul 26, 2022 · 0 comments
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Jul 26, 2022

We cannot get tag/edge_type level comment now, it can be only shown in show create tag as follows, we may introduce new Semitic or add extra information in existing queries for this information in a field to make the application easier to get comments of tag/edge_type.

(root@nebula) [basketballplayer]> create edge hello(name string comment "name of hello") comment="helloworld for edge type";
Execution succeeded (time spent 6957/56438 us)

Tue, 26 Jul 2022 11:57:59 CST

(root@nebula) [basketballplayer]> desc edge hello
+--------+----------+-------+---------+-----------------+
| Field  | Type     | Null  | Default | Comment         |
+--------+----------+-------+---------+-----------------+
| "name" | "string" | "YES" |         | "name of hello" |
+--------+----------+-------+---------+-----------------+
Got 1 rows (time spent 1160/53604 us)

Tue, 26 Jul 2022 11:58:04 CST

(root@nebula) [basketballplayer]> show create edge hello
+---------+-------------------------------------------------------------------------+
| Edge    | Create Edge                                                             |
+---------+-------------------------------------------------------------------------+
| "hello" | "CREATE EDGE `hello` (                                                  |
|         |  `name` string NULL COMMENT "name of hello"                             |
|         | ) ttl_duration = 0, ttl_col = "", comment = "helloworld for edge type"" |
+---------+-------------------------------------------------------------------------+
Got 1 rows (time spent 1089/72901 us)

Tue, 26 Jul 2022 11:58:10 CST

(root@nebula) [basketballplayer]> show edges
+----------+
| Name     |
+----------+
| "follow" |
| "hello"  |
| "serve"  |
+----------+
@wey-gu wey-gu added the type/enhancement Type: make the code neat or more efficient label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

1 participant