# EntityById

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

Selector that matches one entity by id.

```ds title="EntityById"
export struct EntityById {
    kind: "id";
    id: EntityId;
}
```

[language/library/src/topology/entity.ds:36:41](https://github.com/destack-sh/destack/blob/main/language/library/src/topology/entity.ds#L36-L41)

## Members

### `kind: "id"`

Selector discriminator.

### `id: EntityId`

Entity id to match.
