# `@distinct` annotation

The `@distinct` annotation is used to restrict an owned list of attributes to distinct values.

## [](#_syntax)Syntax

Relates syntax

```typeql
<type label> relates <type label>[] @distinct;
```

Owns syntax

```typeql
<type label> owns <type label>[] @distinct;
```

The `@distinct` annotation does not accept any arguments.

## [](#_usage)Usage

The `@distinct` annotation enforces the `distinct` constraint for an ordered type capability. This constraint ensures that lists contain only distinct values.

Ordered capabilities, lists, and related annotations like `@distinct` are not yet available in TypeDB. Coming soon!

[@regex](../regex/index.md) [@doc](../doc/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/typeql-reference/modules/ROOT/pages/annotations/distinct.adoc) Edit this page on GitHub.