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

# E652

# Invalid Field Access

## Erroneous Code Example

This error occurs when you try to access a field that doesn't exist on the inner type of an iterable variable.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query addUser(userData: [{name: String, age: I64}]) =>
      FOR { name, age, nonexistent_field } IN userData {
          AddN<User>({name: name, age: age})
      }
      RETURN "Users added"
  ```
</CodeGroup>

## Solution

Ensure to only access fields that exist on the inner type.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query addUser(userData: [{name: String, age: I64}]) =>
      FOR { name, age } IN userData {
          AddN<User>({name: name, age: age})
      }
      RETURN "Users added"
  ```
</CodeGroup>
