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

# E106

# Use of Undeclared Node or Vector Type in Schema

## Erroneous Code Example

This error occurs when you reference a node or vector type in an edge definition before that type has been declared in the schema.

<CodeGroup>
  ```helixql schema.hx theme={null}
  E::Follows {
      From: User,
      To: User,
  }

  // User is not defined yet
  ```
</CodeGroup>

## Solution

Declare the node or vector type in your schema before using it in an edge definition.

<CodeGroup>
  ```helixql schema.hx theme={null}
  N::User {
      name: String,
  }

  E::Follows {
      From: User,
      To: User,
  }
  ```
</CodeGroup>
