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

# Schema definition

> How to define schemas for nodes, edges, and vectors in HelixDB with type-safe property definitions

## 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:

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

***

### Edge schemas

Define relationships between nodes with properties:

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

***

### Vector schemas

Define vector types with metadata properties:

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