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

# E625

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

## Erroneous Code Example

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

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

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

  E::SimilarTo {
      From: User,
      To: User,
  }
  ```
</CodeGroup>

## Solution

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

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

  E::SimilarTo {
      From: Document,
      To: Document,
  }
  ```

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