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, NebulaGraph 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: February 1, 2023