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

# E304

# Missing Item Type

## Erroneous Code Example

This error occurs when an item type is required but not provided in your query.

In this example, the `User` item type is required but not provided.

<CodeGroup>
  ```rust example1.hx theme={null}
  Query getUser(userId: ID) =>
      user <- N(userId)
      RETURN user
  ```

  ```rust example2.hx theme={null}
  Query getUser(userId: ID) =>
      user <- N<User>(userId)::Out
      RETURN user
  ```
</CodeGroup>

## Solution

Specify the required item type within the `<` and `>` brackets after the traversal step in your query.

<CodeGroup>
  ```rust example1.hx theme={null}
  Query getUser(userId: ID) =>
      user <- N<User>(userId)
      RETURN user
  ```

  ```rust example2.hx theme={null}
  Query getUser(userId: ID) =>
      user <- N<User>(userId)::Out<Knows>
      RETURN user
  ```
</CodeGroup>
