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

# E201

# Item Type Not in Schema

## Erroneous Code Example

This error occurs when you reference an item type in a query that is not defined in your schema.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY getProduct(id: ID) =>
      product <- N<Product>(id)
      RETURN product
  ```

  ```helixql schema.hx theme={null}
  N::User {
      name: String,
  }
  // Product is not defined
  ```
</CodeGroup>

## Solution

Define the item type in your schema before using it in queries.

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

  N::Product {
      name: String,
      price: F64,
  }
  ```
</CodeGroup>
