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

# W101

# Query Has No Return

## Erroneous Code Example

This warning occurs when a query does not have a `RETURN` statement. While not always an error, queries typically should return a value.

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

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

## Solution

Add a `RETURN` statement to specify what the query should return, or use a mutation operation like `INSERT`, `UPDATE`, or `DROP` if the query is intended to modify data without returning a value.

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

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