# deprecated

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

Marks an element of a GraphQL schema as no longer supported.

```
directive @deprecated(

  reason: String

) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`deprecated.reason`](#reason) ● [`String`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/string.md) scalar[​](#reason "Direct link to reason")
