> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/directives/doc

# doc Directive

Groups fields and operations into named groups.

```graphql
directive @doc(
  category: String!
) on ENUM | FIELD | FIELD_DEFINITION | INPUT_OBJECT | OBJECT | INTERFACE
```

<a id="arguments"></a>

### Arguments

<a id="category"></a>

#### [`category`](#category) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Name of the grouping category
