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

# E653

# Non-Object Inner Type

This error occurs when the inner type of an iterable variable is not an object type, preventing field access or object destructuring.

## Erroneous Code Example

In this example, the `numbers` variable contains primitives, not objects, so field access is not allowed.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query addUsers(names: [String]) =>
      FOR {name} In names {
          AddN<User>({name: name})
      }
      RETURN "Users added"
  ```
</CodeGroup>

## Solution

Ensure iterable contains object types for field access.

<CodeGroup>
  ```rust queries_solution1.hx theme={null}
  Query addUsers(names: [String]) =>
      FOR name IN names {
          AddN<User>({name: name})
      }
      RETURN "Users added"
  ```

  ```rust queries_solution2.hx theme={null}
  Query addUsers(names: [{name: String}]) =>
      FOR {name} IN names {
          AddN<User>({name: name})
      }
      RETURN "Users added"
  ```
</CodeGroup>
