> ## Documentation Index
> Fetch the complete documentation index at: https://helix-digitalocean.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Schema Definition

> Text, title, and styling in standard markdown

## Schema Definition

HelixQL uses a schema definition to define the structure of the graph.
Note that every node, edge and vector has an implicit `ID` field. that is not in the schema definition.

### Node Schema

Defines node types and their properties in the graph.

```rust theme={null}
N::NodeType {
  field1: String,
  field2: U32
}
```

***

### Edge Schema

Defines relationships between nodes and their properties.

```rust theme={null}
E::EdgeType {
  From: String,
  To: String,
  Properties: {
    field1: String,
    field2: U32
  }
}
```

***

### Vector Schema

Defines the vector type.

```rust theme={null}
V::VectorType {
  field1: String
}
```
