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

# E626

# Edge Type Does Not Have a Vector Type as Its To Source

## Erroneous Code Example

This error occurs when you try to use an edge in a context that requires the `To` type to be a vector type, but the edge's `To` type is not a vector.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY getRelated(id: ID) =>
      doc <- V<Document>(id)
      related <- doc->>References
      RETURN related
  ```

  ```helixql schema.hx theme={null}
  V<128>::Document {
      title: String,
  }

  N::Author {
      name: String,
  }

  E::References {
      From: Document,
      To: Author,
  }
  ```
</CodeGroup>

## Solution

Set the `To` type of the edge to a vector type.

<CodeGroup>
  ```helixql schema.hx theme={null}
  V<128>::Document {
      title: String,
  }

  V<128>::Citation {
      source: String,
  }

  E::References {
      From: Document,
      To: Citation,
  }
  ```

  ```helixql queries.hx theme={null}
  QUERY getRelated(id: ID) =>
      doc <- V<Document>(id)
      citations <- doc->>References
      RETURN citations
  ```
</CodeGroup>
