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

# E208

# Field Has Not Been Indexed

## Erroneous Code Example

This error occurs when you try to use a field in an operation that requires the field to be indexed, but the field has not been marked with `INDEX` in the schema.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY findUserByEmail(email: String) =>
      users <- N<User>::WHERE(|u| u.email == email)
      RETURN users
  ```

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

## Solution

Add the `INDEX` modifier to the field in your schema.

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