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

# E102

# Unknown Edge Type

## Erroneous Code Example

This error occurs when you try to reference an edge type that is not defined in your schema.

<CodeGroup>
  ```rust queries.hx theme={null}
  QUERY getUsersPosts(id: ID) =>
      posts <- N<User>(id)::Out<Posted>
      RETURN posts
  ```

  ```rust schema.hx theme={null}
  N::User {
      // fields
  }

  N::Post {
      // fields
  }
  ```
</CodeGroup>

## Solution

Define the edge type `Posted` in your schema.

<CodeGroup>
  ```rust schema.hx theme={null}
  N::User {
      // fields
  }

  N::Post {
  // fields
  }

  E::Posted {
      From: User,
      To: Post,
  }

  ```
</CodeGroup>
