# EdgeOptions

`import { EdgeOptions } from "destack:topology";`

Edge decorator options.

```ds title="EdgeOptions"
export struct EdgeOptions<T = unknown> {
    kind: EdgeKind;
    id: (&'a readonly T) => EdgeId;
    from: (&'a readonly T) => EntityId;
    to: (&'a readonly T) => EntityId;
    name: (&'a readonly T) => string | undefined;
    labels: (&'a readonly T) => LabelSet | undefined;
}
```

[language/library/src/topology/decorator.ds:18:31](https://github.com/destack-sh/destack/blob/main/language/library/src/topology/decorator.ds#L18-L31)

## Members

### `kind: EdgeKind`

Edge kind.

### `id: (&'a readonly T) => EdgeId`

Edge identifier projection.

### `from: (&'a readonly T) => EntityId`

Source entity projection.

### `to: (&'a readonly T) => EntityId`

Destination entity projection.

### `name: (&'a readonly T) => string | undefined`

Edge name projection.

### `labels: (&'a readonly T) => LabelSet | undefined`

Edge labels projection.
