# Add ADRs to resources

Copy as Markdown[View as Markdown](/docs/development/guides/resources/adrs/linking-resources.md)

***

Use `appliesTo` to connect an ADR to the catalog resources it affects. When resources are linked, the ADR appears in the **Decision Records** section of each resource's sidebar.

![Decision Records section on a resource sidebar listing linked ADRs](/assets/images/linked-adr-document-1f0fd3c94f476bbedc3d1e104bde617d.png)

## Use `appliesTo`[​](#use-appliesto "Direct link to use-appliesto")

Add an `appliesTo` array to the frontmatter, specifying the `type` and `id` of each affected resource.

adrs/choose-kafka/index.mdx

```
appliesTo:
  #  ADR will apply to the Orders Domain
  - type: domain
    id: Orders
  # ADR will apply to the PaymentService
  - type: service
    id: PaymentService
  # ADR will apply to the PaymentAccepted event
  - type: event
    id: PaymentAccepted
```

## Pin to a specific version[​](#pin-to-a-specific-version "Direct link to Pin to a specific version")

By default, EventCatalog resolves the link to the latest version of the resource. Add a `version` field to pin to a specific version.

```
appliesTo:
  - type: service
    id: PaymentService
    version: 1.0.0
  - type: event
    id: OrderConfirmed
    version: latest   # explicit, same as omitting version
```

## How it appears in the UI[​](#how-it-appears-in-the-ui "Direct link to How it appears in the UI")

When a resource has one or more ADRs linked via `appliesTo`, a **Decision Records** group appears in that resource's sidebar. Each linked ADR shows its name and links directly to the decision page.

This means engineers reading a service or event page can immediately see which architectural choices affect it, without leaving the page.
