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

# E303

# Invalid Primitive Value

## Erroneous Code Example

This error occurs when you provide a primitive value that is not valid for the expected type.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY createUser() =>
      user <- N<User>::INSERT { age: "not a number" }
      RETURN user
  ```

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

## Solution

Provide a valid primitive value that matches the expected type.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY createUser() =>
      user <- N<User>::INSERT { age: 25 }
      RETURN user
  ```

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