Skip to content

Graph type definitions

Graph types describe labels, properties, value types and endpoint constraints. Definitions are bound into engine-owned types and persisted without reparsing their original GQL text on reopen.

CREATE GRAPH TYPE PersonGraph { NODE Person {name STRING, age INTEGER} };
CREATE GRAPH people PersonGraph;
DROP GRAPH people;
DROP GRAPH TYPE PersonGraph;

Named and inline definitions, nested node/edge entries, LIKE sources and graph-type AS COPY OF sources are supported. Graph-type reference parameters retain catalog identity. Definitions referenced by graphs cannot be dropped or replaced while those dependencies remain.

Closed graph parameter types currently require an exact bound-definition match. Type details such as FLOAT precision/scale and NOT NULL participate in that definition; external graph-type imports and data copying are unsupported.

Value type declarations →