> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 自定义 GraphQL API 参考布局

使用 `docs.yml` 布局中的 `operation` 关键字控制 GraphQL 操作在侧边栏中的显示方式。可以排序操作、设置自定义标题和 slug、隐藏操作，并将它们分组到不同的部分。

**`docs.yml`**

```yaml docs.yml
navigation:
  - api: GraphQL API Reference
    layout:
      - section: Plants
        contents:
          - operation: QUERY getPlant
            title: Get plant details
          - operation: MUTATION createPlant
```

阅读文档