---
canonical: https://amplience.com/developers/docs/apis/asset-management/reference/directives/
title: Directives
description: Reference for all GraphQL directives in the Amplience GraphQL Management API, including @deprecated, @skip, @include, and @specifiedBy.
audience: Developer
date_published: 2023-05-26
date_modified: 2026-07-20
---

# Directives

Directives provide a way to describe alternate runtime execution and type validation behavior in a GraphQL document. They can annotate schema elements or control query execution.

## @include

Directs the executor to include this field or fragment only when the `if` argument is true.

**Locations:** `FIELD`, `FRAGMENT_SPREAD`, `INLINE_FRAGMENT`

```graphql
directive @include(
  if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
```

**Arguments:**

| Argument | Type | Default | Description |
|---|---|---|---|
| `if` | `Boolean!` |  | Included when true. |

## @skip

Directs the executor to skip this field or fragment when the `if` argument is true.

**Locations:** `FIELD`, `FRAGMENT_SPREAD`, `INLINE_FRAGMENT`

```graphql
directive @skip(
  if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
```

**Arguments:**

| Argument | Type | Default | Description |
|---|---|---|---|
| `if` | `Boolean!` |  | Skipped when true. |

## @deprecated

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

**Locations:** `FIELD_DEFINITION`, `ARGUMENT_DEFINITION`, `INPUT_FIELD_DEFINITION`, `ENUM_VALUE`

```graphql
directive @deprecated(
  reason: String = "No longer supported"
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
```

**Arguments:**

| Argument | Type | Default | Description |
|---|---|---|---|
| `reason` | `String` | "No longer supported" | Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/). |

## @specifiedBy

Exposes a URL that specifies the behavior of this scalar.

**Locations:** `SCALAR`

```graphql
directive @specifiedBy(
  url: String!
) on SCALAR
```

**Arguments:**

| Argument | Type | Default | Description |
|---|---|---|---|
| `url` | `String!` |  | The URL that specifies the behavior of this scalar. |
