Skip to main content

How do I define schemas in HelixDB?

Define the structure of your graph using HelixQL schema definitions. Every node, edge, and vector automatically includes an implicit ID field.

Node schemas

Define node types and their properties:
N::NodeType {  field1: String,  field2: U32 } 

Edge schemas

Define relationships between nodes with properties:
E::EdgeType {  From: String,  To: String,  Properties: {  field1: String,  field2: U32  } } 

Vector schemas

Define vector types with metadata properties:
V::VectorType {  field1: String }