Adding Verticies & Edges directly in the "Write Query" Window in TigerGraph Studio Free Cloud Edition

Hi Currently I’m just manually adding Verticies and Edges in the “Design Schema” Window.

Can I just past the following Example Code into the “Write Query” Window to add a Vertex instead? Likewise for a Directional Edge?

CREATE VERTEX person (
PRIMARY_ID name STRING,
name STRING, age INT,
gender STRING, state STRING
)

I tried it but it errored out the moment I pasted it in.

I didn’t install TG locally I’m just using the free cloud account to learn. Thanks!

William

Hi William,

At Write Queries page you can only use CREATE QUERY statement to create GSQL queries, and in each query there should be only one CREATE QUERY statement.

Other GSQL statements like CREATE VERTEX is not allowed.

Best,
Renchu