---
title: doc Directive
seo:
  title: doc Directive
  description: 'Directive: doc Directive'
slug: api-reference/miscellaneous/directives/doc
sidebar:
  label: doc
search:
  tags:
    - API reference
    - Miscellaneous
lastModified: '2026-04-13'
---

Groups fields and operations into named groups.



```graphql
"""Groups fields and operations into named groups."""
directive @doc(
  """Name of the grouping category"""
  category: String!
) on ENUM | FIELD | FIELD_DEFINITION | INPUT_OBJECT | OBJECT | INTERFACE
```


## Locations

`ENUM`, `FIELD`, `FIELD_DEFINITION`, `INPUT_OBJECT`, `OBJECT`, `INTERFACE`

## Arguments

### category [#category]

**`category`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Name of the grouping category

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
