Skip to content

DESCRIBE TAG

DESCRIBE TAG returns the information about a tag with the given name in a graph space, such as field names, data type, and so on.

Prerequisite

Running the DESCRIBE TAG statement requires some privileges for the graph space. Otherwise, Nebula Graph throws an error.

Syntax

DESC[RIBE] TAG <tag_name>;

You can use DESC instead of DESCRIBE for short.

Example

nebula> DESCRIBE TAG player;
+--------+----------+-------+---------+---------+
| Field  | Type     | Null  | Default | Comment |
+--------+----------+-------+---------+---------+
| "name" | "string" | "YES" |         |         |
+--------+----------+-------+---------+---------+
| "age"  | "int64"  | "YES" |         |         |
+--------+----------+-------+---------+---------+

Last update: August 13, 2021
Back to top