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

# E210

# Identifier Expected to be of Type ID

## Erroneous Code Example

This error occurs when an identifier is expected to be of type ID but a different type was provided.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY getUser(userId: String) =>
      user <- N<User>(userId)
      RETURN user
  ```

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

## Solution

Ensure the identifier is of type ID.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY getUser(userId: ID) =>
      user <- N<User>(userId)
      RETURN user
  ```

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