# resolveEntityReferences

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/techdocs/resolve-references.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/techdocs/resolve-references.ts#L45)

Rewrite dangling edges onto the entities they name.

Mutates `relationships` in place — the entity graph is passed around by reference through the
whole pipeline, and copying it at this size is not free.

## Signature

```ts
function resolveEntityReferences(entities: Entity[], relationships: Relationship[]): ReferenceResolutionResult
```

## Parameters

| Name | Type |
|---|---|
| `entities` | `Entity[]` |
| `relationships` | `Relationship[]` |

**Returns:** `ReferenceResolutionResult`
